无法获取类型'IdeaProject“使用摇篮分布模型 [英] Could not fetch model of type 'IdeaProject' using Gradle distribution

查看:204
本文介绍了无法获取类型'IdeaProject“使用摇篮分布模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在以下嵌入在安卓的gradle工作室外部项目..这教程和我被困在这错误:

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

摇篮'HelloWorldProject项目刷新失败:
             无法获取类型'IdeaProject使用摇篮分布模型
   http://services.gradle.org/distributions/gradle-1.6-bin。拉链
             一个问题发生配置工程:的HelloWorld。
             一个问题发生配置工程:的HelloWorld。
             未能通知项目评估监听器。
             一个名为默认的配置没有找到。

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:

我的版本的Gradle:
-v的gradle

my gradle version: gradle -v

摇篮1.6

摇篮建造时间:周二,2013年5月7日上午9点12分14秒UTC的Groovy:1.8.6结果
  蚂蚁:Apache Ant的(TM)汇编了2012年5月22日的Ivy 1.8.4版本:2.2.0结果
  JVM:1.6.0_45公司(Apple Inc. 20.45-b01-451)操作系统:Mac OS X 10.8.3 x86_64的结果。

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

什么想法?

推荐答案

要解决此问题,打开SDK管理器,并确保在

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

其他/ Android的支持库

(不只是Android的支持库)安装,始终采取最近的tool.android.com变化更新的Andr​​oid Studio来新版本之后。

(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.

这篇关于无法获取类型'IdeaProject“使用摇篮分布模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆