2017-05-19 1 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 홈 폴더를 비웠다. 왜 이것이 기본 템플릿만으로 완전히 새로운 프로젝트에서 실패하고 있는지에 대한 아이디어가 있습니까?

+1

C에 .Gradle 폴더를 삭제 :/사용자/YOURFOLDER가/ –

+1

가/캐시를 무효화하고 안드로이드 스튜디오를 reastart 잠시 동안 인터넷을 끄고 – axtscz

+0

시도를 작동하지 않았다! –

답변

1

Android Studio 3 (3.0.1)을 이전 버전의 동일한 폴더에 설치하면 이런 현상이 발생합니다.

이전 폴더의 이름을 변경 (또는 제거) 한 다음 압축을 풀고 다시 설치하십시오.

+0

이것이 올바른 답변이라고 생각합니다. – MewX

관련 문제