我已经尝试放置所有生命周期依赖项,但并没有解决
依赖项:
compile fileTree(dir: 'libs', include: ['*.jar'])
// AndroidX
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0-rc03'
implementation 'androidx.lifecycle:lifecycle-viewmodel:2.2.0-rc03'
implementation 'androidx.lifecycle:lifecycle-livedata:2.2.0-rc03'
implementation 'androidx.lifecycle:lifecycle-runtime:2.2.0-rc03'
implementation 'androidx.lifecycle:lifecycle-compiler:2.2.0-rc03'
implementation 'androidx.lifecycle:lifecycle-reactivestreams:2.2.0-rc03'
implementation 'androidx.arch.core:core-testing:2.1.0'
implementation 'androidx.cardview:cardview:1.1.0'
// Google
implementation 'com.google.android.material:material:1.1.0-alpha10'
implementation 'com.google.code.gson:gson:2.8.6'
// Okhttp
implementation 'com.squareup.okhttp3:okhttp:4.2.2'