Android Studio - Failed to notify project evaluation listener error

前端 未结 30 1909
悲&欢浪女
悲&欢浪女 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:20

    This is neither an exact answer to the question nor a silver bullet. However, if nothing works for you e.g. Invalidate cache & restart, Checking build dependency, Disabling Instant Run (I never advise that) etc.

    1. Add command-line option --stacktrace in Setting > Build, Execution, Deployment > Compiler
    2. Now build/assemble gradle once again. You will have detailed information about the cause. e.g. in my case:

    Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find com.squareup.okhttp3:logging-interceptor:3.9.1Net.

    I have misspelled the dependency name in module level gradle file. Hope that help

提交回复
热议问题