4
469110
Gast
Hallo,
ich möchte in meiner App Werbebanner anzeigen und brauche dafür die Libary von Google dafür.
Wenn ich die aber zu meiner build.gradle hinzufüge kommt ein Fehler beim Gradle build.
Fehlermeldung:
und so sieht mein Gradle File aus:
Kennt sich da jemand mit Gradle besser aus und kann mir da helfen?
ich möchte in meiner App Werbebanner anzeigen und brauche dafür die Libary von Google dafür.
Wenn ich die aber zu meiner build.gradle hinzufüge kommt ein Fehler beim Gradle build.
Fehlermeldung:
Code:
In project 'app' a resolved Google Play services library dependency depends on another at an exact version (e.g. "[16.0.
5]", but isn't being resolved to that version. Behavior exhibited by the library will be unknown.
Dependency failing: com.google.firebase:firebase-measurement-connector-impl:17.0.4 -> com.google.android.gms:play-servic
es-measurement-base@[16.0.5], but play-services-measurement-base version was 17.1.0.
The following dependencies are project dependencies that are direct or have transitive dependencies that lead to the art
ifact with the issue.
-- Project 'app' depends onto com.google.firebase:firebase-measurement-connector-impl@{strictly 17.0.4}
-- Project 'app' depends onto com.google.android.gms:play-services-ads@19.1.0
-- Project 'app' depends onto com.google.android.gms:play-services-ads@{strictly 19.1.0}
-- Project 'app' depends onto com.google.android.gms:play-services-measurement-api@{strictly 16.0.4}
-- Project 'app' depends onto com.google.firebase:firebase-analytics@{strictly 16.0.6}
-- Project 'app' depends onto com.google.firebase:firebase-core@{strictly 16.0.6}
-- Project 'app' depends onto com.google.android.gms:play-services-measurement-sdk-api@{strictly 17.1.0}
-- Project 'app' depends onto com.google.android.gms:play-services-gass@{strictly 19.1.0}
-- Project 'app' depends onto com.google.android.gms:play-services-measurement-base@{strictly 17.1.0}
-- Project 'app' depends onto com.google.firebase:firebase-analytics-impl@{strictly 16.2.4}
-- Project 'app' depends onto com.google.android.gms:play-services-ads-lite@{strictly 19.1.0}
-- Project 'app' depends onto com.google.firebase:firebase-core@16.0.6
For extended debugging info execute Gradle from the command line with ./gradlew --info :app:assembleDebug to see the dep
endency paths to the artifact. This error message came from the google-services Gradle plugin, report issues at https://
github.com/google/play-services-plugins and disable by adding "googleServices { disableVersionCheck = false }" to your b
uild.gradle file.
und so sieht mein Gradle File aus:
Code:
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "de.jo.chashflowrechnerlite"
minSdkVersion 19
targetSdkVersion 28
versionCode 92
versionName "4.9.2"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
}
}
}
dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
//noinspection GradleCompatible
implementation 'com.android.support:support-v4:28.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'androidx.mediarouter:mediarouter:1.0.0'
//Firebase Core Libary
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.google.firebase:firebase-messaging:17.3.4'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.0'
//PDF Box Libary
implementation 'org.apache:pdfbox-android:1.8.9.0'
//Floating Action Menü Libary
implementation 'com.github.clans:fab:1.6.4'
//Billing Libary
implementation 'com.android.billingclient:billing:1.2'
//Chart Libary
implementation 'com.github.PhilJay:MPAndroidChart:v2.1.6'
//Dropbox Libary
implementation 'com.dropbox.core:dropbox-core-sdk:2.0.1'
//Facebook Events
//implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
//Google Anmeldung
implementation 'com.google.android.gms:play-services-auth:17.0.0'
//Google Drive
implementation 'com.github.ammarptn:GDrive-Rest-Android:1.4.3'
//Libary für die Werbebanner
implementation 'com.google.android.gms:play-services-ads:19.1.0' // Das hier hab hinzugefügt
//Automatisierte Tests
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.annotation:annotation:1.0.0'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
}
Kennt sich da jemand mit Gradle besser aus und kann mir da helfen?