NoClassDefFoundError Landroid/arch/lifecycle/LifecycleDispatcher

前端 未结 3 1750
慢半拍i
慢半拍i 2020-12-20 18:32

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

3条回答
  •  梦毁少年i
    2020-12-20 19:14

    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.** { *; }
    

提交回复
热议问题