Could not fetch model of type 'IdeaProject' using Gradle distribution

雨燕双飞 提交于 2019-12-08 01:48:35

问题


I was following this tutorial of embedding an external project in android studio with gradle.. and I got stuck at this error:

Gradle 'HelloWorldProject' project refresh failed: Could not fetch model of type 'IdeaProject' using Gradle distribution 'http://services.gradle.org/distributions/gradle-1.6-bin.zip'. A problem occurred configuring project ':HelloWorld'. A problem occurred configuring project ':HelloWorld'. Failed to notify project evaluation listener. Configuration with name 'default' not found.

I followed the instructions here verbatim, but then I get this error:

my gradle version: gradle -v

Gradle 1.6

Gradle build time: Tuesday, May 7, 2013 9:12:14 AM UTC Groovy: 1.8.6
Ant: Apache Ant(TM) version 1.8.4 compiled on May 22 2012 Ivy: 2.2.0
JVM: 1.6.0_45 (Apple Inc. 20.45-b01-451) OS: Mac OS X 10.8.3 x86_64

any ideas?


回答1:


To fix this issue, open the SDK manager, and make sure that the

Extras/Android Support Repository

(not just Android Support Library) is installed, and always take a look on Recent Changes on tool.android.com after updating Android Studio to newer version.




回答2:


use new project/ new module instead of import project/ import module



来源:https://stackoverflow.com/questions/17476219/could-not-fetch-model-of-type-ideaproject-using-gradle-distribution

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!