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?
I tried that while I had a weak internet connection, so I skipped to update to Android Studio 3.2. That was my fault. With that upgrade (the unziping took almost an hour no idea why) I was requested also to upgrade my build tools to com.android.tools.build:gradle:3.2.0-beta04
(or whatever is the newest version matching for your Android Studio version (I would not install the 3.3.0-alpha03
) and upgraded the gradle wrapper to 4.6.
Now the dependencies are gone and I'm happy.