アプリ開発をしているのですが、アプリで表示する広告のsdkが更新され、build.gradleを更新するように広告会社言われました。
修正をしてみると、依存関係のエラーが表示され、どの部分をどのように修正すべきなのか判断がつかずにおります。
ご存知の方がおられましたが教えて頂けますでしょうか。
初歩的なことで申し訳ございません。
エラー内容
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 16.3.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.android.gms:play-services-ads@+ -- 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.
build.gradle
dependencies { implementation 'com.google.firebase:firebase-core:16.0.6' implementation 'com.android.support:multidex:1.0.3' implementation fileTree(include: ['*.jar'], dir: 'libs') implementation 'com.android.support:appcompat-v7:26.1.0' implementation 'com.android.support.constraint:constraint-layout:1.0.2' testImplementation 'junit:junit:4.12' androidTestImplementation 'com.android.support.test:runner:1.0.1' androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.1' implementation 'com.google.android.gms:play-services-ads-identifier:+' //implementation 'com.google.android.gms:play-services-ads:17.1.1' implementation 'com.google.android.gms:play-services-ads:+' implementation 'com.maio:android-sdk:1.1.7' implementation 'com.google.firebase:firebase-crash:16.2.1' implementation 'com.crashlytics.sdk.android:crashlytics:2.9.8' implementation 'com.google.android.gms:play-services-analytics:16.3.0' }
あなたの回答
tips
プレビュー