Android Studio - 无法通知项目评估侦听器错误 [英] Android Studio - Failed to notify project evaluation listener error

查看:36
本文介绍了Android Studio - 无法通知项目评估侦听器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下是Android Studio中的build.gradle代码

Following is the build.gradle code in Android Studio

apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

    defaultConfig {
        applicationId "com.sg.blahblah"
        minSdkVersion 15
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }

    lintOptions {
        checkReleaseBuilds true
        abortOnError false
        xmlReport true
        htmlReport true
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'

            lintOptions {
                disable 'MissingTranslation'
            }
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'com.android.support:design:23.1.1'
    compile 'com.android.support:support-v4:23.1.1'
    compile 'com.android.support:cardview-v7:23.1.1'
    compile 'com.google.android.apps.dashclock:dashclock-api:+'
    compile 'com.roughike:bottom-bar:1.4.0.1'
    compile 'com.diogobernardino:williamchart:2.2'
}

我收到以下错误:错误:配置项目:app"时出现问题.

I am getting the below error: Error:A problem occurred configuring project ':app'.

未能通知项目评估侦听器.com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)V

Failed to notify project evaluation listener. com.android.build.gradle.tasks.factory.AndroidJavaCompile.setDependencyCacheDir(Ljava/io/File;)V

有人可以帮忙吗?

以下是 Instant Run 截图

Following is the Instant Run screenshot

推荐答案

我在通过禁用 Instant Run

文件 → 设置 → 构建、执行、部署 → 即时运行和取消选中启用即时运行.

File → Settings → Build, Execution, Deployment → Instant Run and uncheck Enable Instant Run.

希望它有效.

注意此答案适用于以下 Android Studio 3

Note This answer works on below Android Studio 3

这篇关于Android Studio - 无法通知项目评估侦听器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆