Migration done by the "migrate to AndroidX" refactor in Android Studio.
I had to manually fix the 4 lines with android.support.design.R.id.snackbar_text since that's some internal ID. (I changed it to the same ID in the new library.)
I also had to add a dependency to androidx.test:rules for ActivityTestRule because things are more modular now.
Note: With the release of Android 9.0 (API level 28) there is a new version of the support library called AndroidX which is part of Jetpack. The AndroidX library contains the existing support library and also includes the latest Jetpack components.
You can continue to use the support library. Historical artifacts (those versioned 27 and earlier, and packaged as android.support.*) will remain available on Google Maven. However, all new library development will occur in the AndroidX library.
We recommend using the AndroidX libraries in all new projects. You should also consider migrating existing projects to AndroidX as well.
Migration done by the "migrate to AndroidX" refactor in Android Studio. I had to manually fix the 4 lines with
android.support.design.R.id.snackbar_text
since that's some internal ID. (I changed it to the same ID in the new library.) I also had to add a dependency toandroidx.test:rules
forActivityTestRule
because things are more modular now.Source on the deprecation: https://developer.android.com/topic/libraries/support-library
This change is