I want to try out the new lifecycle stuff from google (https://developer.android.com/arch) but getting a crash on app open. All I have done is add the dependencies. Is anyon
I was using some gradle configurations
android.enableR8.desugaring=false
android.enableJetifier=true
android.useAndroidX=true
To work again I removed android.enableR8.desugaring=false
of gradle.properties file
This occurs even without Proguard. Today I could create the problem by creating the sample Flutter app in Android Studio and then running 'flutter pub upgrade'.
The solution that worked for me was to add to the app build.gradle file under 'dependencies'
dependencies { ... implementation 'com.android.support:appcompat-v7:28.0.0' }
If your app uses androidx, add to the gradle.properties file:
android.useAndroidX=true android.enableJetifier=true
Do you use Proguard? If so, try to turn it off:
debug {
minifyEnabled false
useProguard false
}
Or you can add custom rule to your Proguard config:
-keep class android.arch.** { *; }