Я добавляю AdView в свой проект Android Studio, но при нажатии кнопки загрузки / добавления AdView появляется это сообщение об ошибке:
Для этой операции требуется библиотека com.google.android.gms:play-services-ads:+
Проблема: обнаружены несоответствия в существующих зависимостях проекта.
Несовместимость версий:
androidx.activity:activity:1.0.0-alpha08@aar
и
androidx.concurrent:concurrent-futures:1.0.0-beta01@jar
С зависимостью:
- com.google.guava:listenablefuture:[1.1.0-beta01,1.1.1)
против:
- com.google.guava:listenablefuture:[1.0,1.0.1)
Проект может не скомпилироваться после добавления этой библиотеки.
Вы все равно хотите это добавить?
Вот мои зависимости gradle:
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
implementation 'androidx.gridlayout:gridlayout:1.0.0'
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.google.android.material:material:1.1.0-alpha07'
}