android - 无法使用 Gradle 分发获取类型 'IdeaProject' 的模型

标签 android intellij-idea gradle android-studio build.gradle

我正在关注this使用 gradle 在 android studio 中嵌入外部项目的教程..我遇到了这个错误:

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.

我按照指示 here 进行操作逐字记录,但后来我收到此错误:

enter image description here

我的gradle版本: 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

有什么想法吗?

最佳答案

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

额外/Android 支持存储库

(不仅仅是 Android 支持库)已安装,并且始终查看 Recent Changes on tool.android.com将 Android Studio 更新到较新版本后。

Picture

关于android - 无法使用 Gradle 分发获取类型 'IdeaProject' 的模型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17476219/

相关文章:

作为计时器的 Android 处理程序不准确

android - Laplacian OpenCV Android无法正常工作

java - 如何调整 IntelliJ 来构建 Hybris 项目?

java - 使用 Stream.of 绕过 IntelliJ 错误

Gradle Hello World 错误

spring - Gradle - 无法追踪传递依赖

java - 如何获得持卡人姓名

android - 相机预览的 OpenGL 模型叠加

node.js - intellij idea 中的多个 ECMA-Script 版本

Gradle 找不到 org.apache.commons :commons-imaging