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.xmlToolbar, a TabLayout, and a ViewPager elements need to be updated to use androidx dependency.
<androidx.appcompat.widget.Toolbar
<com.google.android.material.tabs.TabLayout
<androidx.viewpager.widget.ViewPager
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
What version of Android Studio are you using? Android Studio Arctic Fox | 2020.3.1 Patch 4
What API level are you targeting? API 21: Android Lollipop
Describe the problem The codelab instructs to include
implementation 'com.android.support:design:26.1.0'
dependency inbuild.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 theactivity_main.xml
Toolbar, a TabLayout, and a ViewPager elements need to be updated to use androidx dependency.<androidx.appcompat.widget.Toolbar
<com.google.android.material.tabs.TabLayout
<androidx.viewpager.widget.ViewPager
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
codelab: android-fundamentals https://developer.android.com/codelabs/android-training-provide-user-navigation?index=..%2F..%2Fandroid-training