While trying to run the app in release mode on Android, there are potential issue you can run into:
If you see this error: AAPT: error: resource android:attr/colorError not found. follow this post and add this to your android build.gradle file:
subprojects {
afterEvaluate {
project ->