google-developer-training / android-fundamentals-apps-v2

Other
649 stars 2.63k forks source link

Android Java Fundamentals codelab: User Navigation (Lateral Navigation) deprecated dependency #328

Closed WeyardWiz closed 1 year ago

WeyardWiz commented 2 years ago

Describe the problem The codelab instructs to include implementation 'com.android.support:design:26.1.0' dependency in build.gradle (Module: app) file. However, this is deprecated and there is no need to edit the build.gradle since it already has androidx dependency. This means the activity_main.xml Toolbar, a TabLayout, and a ViewPager elements need to be updated to use androidx dependency.

In which lesson and step of the codelab can this issue be found? Lesson: 04.4: User navigation Task 2.1

How to reproduce? Remove the TextView supplied by the template, and add a Toolbar, a TabLayout, and a ViewPager within the RelativeLayout as shown in the code.

Versions

  1. What version of Android Studio are you using? Android Studio Arctic Fox | 2020.3.1 Patch 4
  2. What API level are you targeting? API 21: Android Lollipop

codelab: android-fundamentals https://developer.android.com/codelabs/android-training-provide-user-navigation?index=..%2F..%2Fandroid-training