相关疑难解决方法(0)

Gradle的依赖性缓存可能已损坏(这有时会在网络连接超时后发生.)

我遇到了这种错误,如何修复它.

Error:Unable to load class 'org.gradle.tooling.internal.protocol.test.InternalTestExecutionConnection'.
Possible causes for this unexpected error Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle …
Run Code Online (Sandbox Code Playgroud)

android gradle gradle-plugin

71
推荐指数
8
解决办法
10万
查看次数

Android工作室陷入了Refreshing Gradle项目

将Android工作室更新为1.2.2,后台进程不会结束.(刷新'MemoryCards'Gradle项目).

现在已经超过一个小时而且仍然很忙?

在此输入图像描述

这是正常的,为什么需要这么长时间?它是一个小应用程序.

这是我的想法.log:https://www.dropbox.com/s/syf12m3lxbww5k7/idea.log dl = 0

更新:

在Android工作室中禁用我的代理设置并继续刷新过程并向我显示以下内容. 在此输入图像描述

它在下载gradle zip时失败了:

在此输入图像描述

所以我认为这需要很长时间才能尝试下载gradle zip文件+ - 60 Mb并且我的互联网连接很慢...

因此,当我禁用代理设置但是它无法下载gradle zip文件时,该过程会继续...?所以它又失败了.

更新:

我使用了另一个Internet源,它下载了gradle并继续进行.

android android-studio

39
推荐指数
4
解决办法
5万
查看次数

Android Studio 1.2.1.1中的Gradle项目刷新失败

我在Android Studio v 1.2.1.1的全新安装上创建了示例项目,我遇到了以下错误消息:

Gradle project refresh failed in Android Studio 1.2.1.1 
Run Code Online (Sandbox Code Playgroud)

见下图:

在此输入图像描述

所以我试图在谷歌找到任何解决方案,我检查

gradle.properties文件

哪里:

dependencies {
        classpath 'com.android.tools.build:gradle:1.2.2'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
Run Code Online (Sandbox Code Playgroud)

之后,我尝试使用SDK管理器更新所有SDK库

之后我试图在设置中找到问题(见图)

但一切都没有成功.因为在错误描述中我什么都不知道什么可能是错的以及修复什么.

有什么好主意吗?

非常感谢任何帮助.

注意: Compilaton使用Cordova(也使用Gradle)没有问题,应用程序已编译.

在此输入图像描述

android android-studio build.gradle android-gradle-plugin

3
推荐指数
1
解决办法
2万
查看次数