Android Studio - Failed to notify project evaluation listener error

前端 未结 30 1858
悲&欢浪女
悲&欢浪女 2020-12-13 11:45

Following is the build.gradle code in Android Studio

apply plugin: \'com.android.application\'

android {
    compileSdkVersion 23
    buildToolsVersion \"23         


        
30条回答
  •  萌比男神i
    2020-12-13 12:36

    With the new google support gradle plugin (com.google.gms.google-services) this can be caused by some dependency version problems with your com.google.android.gms.* modules.

    You can probably see the root cause by running the build command with the --stacktrace parameter. i.e.:

    ./gradlew :app:dependencies --stacktrace
    

    which might output the cause of the problem:

    Caused by: org.gradle.api.GradleException: The library com.google.android.gms:play-services-measurement-base is being requested by various other libraries at [[15.0.2,15.0.2], [16.0.0,16.0.0]], but resolves to 16.0.0. Disable the plugin and check your dependencies tree using ./gradlew :app:dependencies. at com.google.gms.googleservices.GoogleServicesPlugin$1$_afterResolve_closure1.doCall(GoogleServicesPlugin.groovy:328) at org.gradle.api.internal.ClosureBackedAction.execute(ClosureBackedAction.java:71)

提交回复
热议问题