Android Studio - Failed to notify project evaluation listener error

前端 未结 30 1741
悲&欢浪女
悲&欢浪女 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
    
    0 讨论(0)
  • 2020-12-13 12:23

    Just Change the Distribution url at gradle-wrapper.properties

    Place it : https://services.gradle.org/distributions/gradle-4.10.1-all.zip

    0 讨论(0)
  • 2020-12-13 12:24

    I got this problem too. I fix it by Change build.gradle in project

    Change

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

    And also I change the distributionUrl in gradle-wrapper.properties(Global Version)

    distributionUrl=https\://services.gradle.org/distributions/gradle-4.0-milestone-1-all.zip
    

    And got succeed.FYI.

    0 讨论(0)
  • 2020-12-13 12:24

    It is interesting but as for me help this:

     File -> Setting -> Gradle -> disable offline work
    
    0 讨论(0)
  • 2020-12-13 12:26

    SETTINGS -> Build, Execution, Deployment -> Gradle -> unselect Offline work Then sync project, you are good to go. If not working , then File > Invalidate caches / Restart - > Invalidate and Restart.

    0 讨论(0)
  • 2020-12-13 12:28

    I enabled "Offline-Work" under File -> Settings ->Build,Deploy, Exec -> Gradle And this finally resolved the issue for me.

    0 讨论(0)
提交回复
热议问题