2017-05-19 42 views
7

所以我试着从头开始一个新的项目,Android Studio的新版本3。一切工作,直到它试图建立该项目。然后,我收到以下错误消息:Gradle构建失败,新的Gradle 3.0.0和Android Studio 3``

Error:Unable to find method 'org.gradle.tooling.model.gradle.GradleBuild.getIncludedBuilds()Lorg/gradle/tooling/model/DomainObjectSet;'. 
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) 
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. 
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>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 requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes. 

单击任一解决方案都不会阻止它再次失败。我甚至清空我的gradle home文件夹无济于事。任何想法,为什么这是一个全新的项目,只有基本的模板没有任何内容?

+1

删除C .Gradle文件夹:/用户/ YOURFOLDER/ –

+1

没有工作@DivyeshPatel – axtscz

+0

尝试无效/缓存和reastart机器人工作室和关闭互联网一会儿 –

回答

1

如果您将Android Studio 3(或3.0.1)安装到旧版本的相同文件夹中,会发生这种情况。

只需重命名(或删除)旧文件夹,然后再解压并重新安装。

+0

我认为这对我来说是正确的答案 – MewX