I'm migrating my dependencies for an Android P test to the androidx dependencies. For some not very clear reasons my project does not compile anymore (and no I won't provide the details to avoid a distinct problem). I found out (via gradlew dependencies
) that the databinding uses the "oldschool" dependency android.arch.lifecycle:runtime:1.0.3
instead of androidx.lifecycle:lifecycle-runtime:2.0.0-beta01
. I guess that could be one reason.
Any idea how to force using the new package names/dependencies?
android.enableJetifier=true
andandroid.useAndroidX=true
ingradle.properties
? – Sculpsitandroid.enableJetifier=true
is not the real solution. It will increase build times. In worst cases RAM usage at every build will sky rocket(I have seen it using an extra 500mb myself). Instead it's better to manually migrate each of your libraries to androidx. This also gives you confidence over your code. – Laminous