Попытка обновления моего Android проекта с API 25 до AndroidX, я использую следующее в макете
<FrameLayout
android:id="@+id/frame0"
app:layout_heightPercent="10%"
android:layout_marginTop="50dp"
android:layout_height="wrap_content"
android:layout_width="match_parent">
<com.google.android.gms.ads.AdView
android:id="@+id/adViewFirstPage1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
ads:adSize="BANNER"
ads:adUnitId="@string/banner_ad_1"
android:layout_gravity="center"
/>
Это обновленный файл gradle для AndroidX - взят из GitHub Samples Google
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'com.google.android.material:material:1.0.0'
implementation 'com.google.firebase:firebase-core:17.2.1'
implementation 'com.google.firebase:firebase-iid:20.0.2'
implementation 'com.google.firebase:firebase-messaging:20.1.0'
implementation 'android.arch.work:work-runtime:1.0.1'
Теперь я получаю ошибки, такие как layout_heightPercent не найден ошибка в FrameLayout AAPT: ошибка: атрибут adUnitId не найден в баннере AdMob
Согласно Документация Я не смог найти правильную библиотека. Небольшая помощь будет очень полезна.