有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

java如何修复错误:在“app”项目中,一个已解决的Google Play services库依赖项

在我更新com之后。谷歌。安卓gms:17.1.2到18.2.0之间的播放服务广告依赖性我得到以下错误: 在我更新com之后。谷歌。安卓gms:17.1.2到18.2.0之间的播放服务广告依赖性我得到以下错误:

在我更新com之后。谷歌。安卓gms:17.1.2到18.2.0之间的播放服务广告依赖性我得到以下错误:

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.安卓.gms:play-services-analytics-impl:16.0.6 -> com.google.安卓.gms:play-services-m
easurement-base@[16.0.5], but play-services-measurement-base version was 17.0.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.安卓.gms:play-services-ads@17.1.2
-- Project 'app' depends onto com.google.安卓.gms:play-services-analytics@16.0.6
-- Project 'app' depends onto com.google.firebase:firebase-ads@17.1.2
-- Project 'app' depends onto com.google.安卓.gms:play-services-ads@18.2.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.

这是我的身材。gradle文件代码。请帮我解决这个问题

apply plugin: 'com.安卓.application'

安卓 {
    compileSdkVersion 27
    buildToolsVersion '28.0.3'
    useLibrary 'org.apache.http.legacy'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
    defaultConfig {
        applicationId "com.pkrcash.new19"
        minSdkVersion 17
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        aaptOptions.cruncherEnabled = false
        aaptOptions.useNewCruncher = false
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-安卓.txt'), 'proguard-rules.pro'
        }
    }
    productFlavors {
    }
    lintOptions {
        checkReleaseBuilds false
        // Or, if you prefer, you can continue to check for errors in release builds,
        // but continue the build even when errors are found:
        abortOnError false
    }
}

// Maven Repositories
repositories {

    google()
    mavenCentral()
    flatDir { dirs 'libs' }

}

dependencies {
    // Other Libraries
    api project(':library')
    // test Libraries
    implementation fileTree(include: ['*.jar'], dir: 'libs')
    testImplementation 'junit:junit:4.12'
    // Android Support Libraries
    //noinspection GradleCompatible
    implementation 'com.安卓.support:design:27.1.1'
    implementation 'com.安卓.support:support-v4:27.1.1'
    implementation 'com.安卓.support:cardview-v7:27.1.1'
    implementation 'com.安卓.support:appcompat-v7:27.1.1'
    implementation 'com.安卓.support:mediarouter-v7:27.1.1'
    implementation 'com.安卓.support:support-vector-drawable:27.1.1'
    // Adnetwork Libraries
    implementation 'com.startapp:inapp-sdk:3.10.1'
    // MultiDex Dependency
    implementation 'com.安卓.support:multidex:1.0.3'
    implementation 'com.squareup.okio:okio:1.14.0'
    implementation 'com.google.code.gson:gson:2.8.2'
    implementation 'com.nineold安卓s:library:2.4.0'
    implementation 'com.squareup.okhttp3:okhttp:3.10.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'de.hdodenhof:circleimageview:2.2.0'
    //implementation 'com.mcxiaoke.volley:library:1.0.19'
    implementation 'com.安卓.volley:volley:1.1.1'
    implementation 'com.github.d-max:spots-dialog:0.7@aar'
    implementation 'com.github.paolorotolo:appintro:4.1.0'
    implementation 'org.apache.httpcomponents:httpclient-安卓:4.3.5'
    implementation 'com.facebook.network.connectionclass:connectionclass:1.0.1'
    // slider library
    implementation 'com.daimajia.slider:library:1.1.5@aar'
    // Google Libraries
    implementation 'com.google.安卓.gms:play-services-analytics:16.0.6'
    implementation 'com.google.安卓.gms:play-services-gcm:16.0.0'
    // OLD implementation 'com.google.安卓.gms:play-services-ads:17.1.2'
    implementation 'com.google.安卓.gms:play-services-ads:18.2.0'
    implementation 'com.google.安卓.gms:play-services-auth:16.0.1'
    // Firebase
    implementation 'com.google.firebase:firebase-core:16.0.6'
    implementation 'com.google.firebase:firebase-auth:16.1.0'
    implementation 'com.google.firebase:firebase-ads:17.1.2'
    implementation 'com.google.firebase:firebase-messaging:17.3.4'
    implementation 'com.google.安卓.gms:play-services-ads:17.1.2'
    implementation project(':spinlibrary')
    implementation 'com.byteshaft.requests:requests:0.5.3'
    implementation 'com.rengwuxian.materialedittext:library:2.1.4'
    implementation 'com.github.florent37:materialtextfield:1.0.7'
    implementation 'agency.tango.安卓:material-intro-screen:0.0.5'
    implementation 'com.kaopiz:kprogresshud:1.2.0'
    implementation 'com.github.f0ris.sweetalert:library:1.5.6'
    implementation project(path: ':安卓scratchcard')
}

apply plugin: 'com.google.gms.google-services'

共 (0) 个答案