【发布时间】:2014-08-09 12:52:57
【问题描述】:
我已经在 OS X (10.9.3) 上安装了 Android Studio (0.6.1),并使用 Brew (brew install gradle) 安装了 Gradle 1.1。但是,我无法获得我的第一个 Hello World!项目...请帮我解决这个问题
build.gradle:
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:0.11.+'
}
}
apply plugin: 'android'
repositories {
mavenCentral()
}
android {
compileSdkVersion 19
buildToolsVersion '19.1'
defaultConfig {}
productFlavors {}
}
dependencies {
}
错误信息:
错误:(8, 0) 未找到 ID 为“android”的插件。
Getting Build failed with an Exception Android Studio 0.4.3 and 0.4.4 发帖和Android Studio: Plugin with id 'android-library' not found 发帖都没有解决问题...
Second post I linked 返回此错误消息:
错误:项目正在使用不受支持的 Gradle 版本。请 使用 1.10 版。请指向支持的 Gradle 版本 项目的 Gradle 设置或项目的 Gradle 包装器中(如果 适用。)修复 Gradle 包装器和 重新导入项目 Gradle 设置
【问题讨论】: