Przepraszam, jeśli brakuje mi czegoś oczywistego, ale przeprowadziłem migrację mojego projektu do Androida X i nadal nie mogę używać TabLayout w moich plikach układu.
Moje zależności w build.gradle (poziom aplikacji):
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.1.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.firebase:firebase-analytics:17.2.0'
implementation 'com.google.firebase:firebase-database:19.2.0'
implementation 'com.google.firebase:firebase-storage:19.1.0'
implementation 'com.google.firebase:firebase-auth:19.2.0'
implementation 'com.airbnb.android:lottie:3.3.1'
implementation 'com.lorentzos.swipecards:library:1.0.9'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
Próbowałem też dodać:
implementation 'com.android.support:design:27.1.0'
A potem Android studio oznacza to jako błąd i mówi mi, żebym zaktualizował do Androida X (co już zrobiłem)
Jeśli to ma znaczenie, moja kompilacyjna wersja SDK to 29 narzędzi do kompilacji: 29.0.2
Z góry dziękuję
1 odpowiedź
Użyj implementation 'com.google.android.material:material:1.0.0'
. Obejmuje Tablayout
Podobne pytania
Nowe pytania
android
Android to mobilny system operacyjny Google, używany do programowania lub tworzenia urządzeń cyfrowych (smartfony, tablety, samochody, telewizory, Wear, Glass, IoT). W przypadku tematów związanych z Androidem użyj tagów specyficznych dla Androida, takich jak android-intent, android-activity, android-adapter itp. W przypadku pytań innych niż programowanie lub programowanie, ale związanych ze strukturą Androida, użyj tego linku: https: // android.stackexchange.com.