相关疑难解决方法(0)

Android studio - 无法完成gradle执行 - 打开zip文件时出错

我是android开发和android studio IDE的新手.

我从bitbucket检出了一个项目,当我尝试编译它时,我收到以下错误:

无法完成Gradle执行

原因:打开zip文件时出错.

我的gradle-wrapper.properties情况如下:

distributionBase = GRADLE_USER_HOME
distributionPath = wrapper/dists
zipStoreBase = GRADLE_USER_HOME
zipStorePath = wrapper/dists
distributionUrl = http \://services.gradle.org/distributions/gradle-1.11-all.zip

我无法从此获取太多信息,但完整日志指出:

2014-05-23 14:06:28,950 [32077] WARN - nal.AbstractExternalSystemTask - 原因:打开zip文件时出错com.intellij.openapi.externalSystem.model.ExternalSystemException:原因:在org.jetbrains打开zip文件时出错. plugins.gradle.service.project.GradleExecutionHelper.execute(GradleExecutionHelper.java:206)在org.jetbrains.plugins.gradle.service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:116)在org.jetbrains.plugins.gradle. com.intellij.openapi.externalSystem.service.remote上的com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl $ 1.produce(RemoteExternalSystemProjectResolverImpl.java:41)中的service.project.GradleProjectResolver.resolveProjectInfo(GradleProjectResolver.java:64) .RemoteExternalSystemProjectResolverImpl $ 1.produce(RemoteExternalSystemProjectResolverImpl.java:37)at com.intellij.openapi.externalSystem.service.remote.AbstractRemoteExternalSystemService.execute(AbstractRemoteExternalSystemService.jav)一:59)在com.intellij.openapi.externalSystem.service.remote.RemoteExternalSystemProjectResolverImpl.resolveProjectInfo(RemoteExternalSystemProjectResolverImpl.java:37)在com.intellij.openapi.externalSystem.service.remote.wrapper.ExternalSystemProjectResolverWrapper.resolveProjectInfo(ExternalSystemProjectResolverWrapper.java: 49)在com.intellij.openapi.externalSystem.service.internal.ExternalSystemResolveProjectTask.doExecute(ExternalSystemResolveProjectTask.java:48)在com.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:137)在玉米.intellij.openapi.externalSystem.service.internal.AbstractExternalSystemTask.execute(AbstractExternalSystemTask.java:123)在com.intellij.openapi.externalSystem.util.ExternalSystemUtil $ 3.execute(ExternalSystemUtil.java:467)在com.intellij.openapi. externalSystem.util.ExternalSystemUtil $ 4 $ 2.run(ExternalSystemUtil.java:546)at com.intellij.openapi.progress.impl.ProgressManagerImpl $ TaskRunnabl e.run(ProgressManagerImpl.java:464)在com.intellij.openapi.progress.impl.ProgressManagerImpl $ 2.run(ProgressManagerImpl.java:178)在com.intellij.openapi.progress.ProgressManager.executeProcessUnderProgress(ProgressManager.java:209 )在com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:212)在com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:171)在com.intellij.openapi. progress.impl.ProgressManagerImpl $ 8.run(ProgressManagerImpl.java:373)at com.intellij.openapi.application.impl.ApplicationImpl $ 8.run(ApplicationImpl.java:419)at java.util.concurrent.Executors $ RunnableAdapter.call( Executors.java:511)在java.util.concurrent.FutureTask.run(FutureTask.java:266)在java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)在java.util.concurrent.ThreadPoolExecutor中的$工人.run(ThreadPoolExecutor.java:617)位于com.intellij.openapi.app的java.lang.Thread.run(Thread.java:745)lication.impl.ApplicationImpl $ 1 $ 1.run(ApplicationImpl.java:149)

2014-05-23 14:06:28,950 [32077] WARN - .project.GradleProjectImporter - 2014-05-23 14:06:28,951 …

java android gradle android-studio android-gradle-plugin

25
推荐指数
3
解决办法
7万
查看次数