Android Studio - Failed to notify project evaluation listener error

前端 未结 30 1923
悲&欢浪女
悲&欢浪女 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条回答
  •  忘掉有多难
    2020-12-13 12:22

    For me, this issue arose due to an incompatible combination of plugin and gradle.

    I added these to the code to have it working:

    Main build.gradle

    dependencies {
            classpath 'com.android.tools.build:gradle:3.0.0'
        }
    

    Main gradle-wrapper.properties:

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
    

提交回复
热议问题