android - 错误 :Failed to complete Gradle execution. 原因:未知

标签 android android-studio gradle android-gradle-plugin

我无法构建我的项目,因为我收到此错误 image

我尝试了我能找到的所有解决方案,但我没有运气。我正在使用 AS 2.1.3。这是我的依赖项:

dependencies {
        classpath 'com.android.tools.build:gradle:2.1.3'
        classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
        classpath 'com.google.gms:google-services:3.0.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }

今天早上我能够毫无问题地工作,我唯一做的就是对 AsyncTask 进行一些更改。

最佳答案

我通过删除 C:\Users\MyUsername 中的 .gradle 文件夹解决了这个问题。

关于android - 错误 :Failed to complete Gradle execution. 原因:未知,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39558683/

相关文章:

android - 在 Android Studio 3 中将 androidManifest.xml 的编码更改为 UTF-8

java - 为什么 'Res' 变量保存一些随机数而不是从编辑文本字段检索数字?

android - Gradle 问题 : More than one file was found with OS independent path 'builddef.lst'

java - 意外隐式转换为字符串 : layout tag was EditText error

Android - 禁用屏幕支持 x 大屏幕

android - 使用CoordinatorLayout时如何隐藏工具栏的部分内容

API 4 的 Android OnDragListener?

java - Android 在应用程序上下文中保存图像

docker - 创建了Docker镜像但docker run抛出错误:无法找到或加载主类org.gradle.wrapper.GradleWrapperMain

gradle - 如何防止gradle下载依赖项