From the course: Android Development Essential Training: The User Interface with Kotlin

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Convert a project to AndroidX packages

Convert a project to AndroidX packages - Android Tutorial

From the course: Android Development Essential Training: The User Interface with Kotlin

Start my 1-month free trial

Convert a project to AndroidX packages

- [Instructor] As I've previously described, many of the visual widgets that you use in Android apps are a part of the material design library. The coordinator layout, and the floating action button are examples of this. When you first create a new project, you have an opportunity to use a newer set of packages that reference this and other libraries. This option is down at the bottom of this screen. It's labeled use AndroidX artifacts. But if you created your project without doing that, like I did, you can upgrade the project later and convert your old style packages and declarations to the new AndroidX syntax. Now I'm working in the same project that I've been working in previously, and in the XML layout file, coordinator layout, app bar layout, and floating action button are all referencing packages that start with Android.support.design. In my main activity class, in my imports, I see similar package declarations. Now, I'm going to convert the entire project to use AndroidX…

Contents