【问题标题】:Android Studio 0.8.0 Error:The SDK Build Tools revision (19.0.3) is too low for project XXX. Minimum required is 19.1.0 [duplicate]Android Studio 0.8.0 错误:SDK 构建工具版本 (19.0.3) 对于项目 XXX 来说太低。最低要求是 19.1.0 [重复]
【发布时间】:2014-07-09 16:38:57
【问题描述】:

经过一天的研究,我仍然无法弄清楚如何解决这个问题! 我在 Eclipse 中创建了一个 build.gradle 文件,因为我们决定切换到 Android Studio (0.8.0)! 但是,导出后出现错误:错误:SDK 构建工具修订版(19.0.3)对于项目“:XX”来说太低了。最低要求是 19.1.0!

我从 SDK 管理器安装了 Android-SDK 构建工具,我手动配置了 build.gradle 文件,并尝试使用“打开模块设置”对其进行配置,但没有任何帮助!

这是我的 build.gradle 文件:

buildscript {
   repositories {
      mavenCentral()
   }
   dependencies {
      classpath 'com.android.tools.build:gradle:0.12.+'
   }
}

apply plugin: 'android'
android {
   compileSdkVersion 20
   buildToolsVersion '20.0.0'
   defaultConfig {}
   productFlavors {}
}
dependencies {}

也许有人知道问题出在哪里!

【问题讨论】:

  • This person 有类似的问题,那里的答案可能会有所帮助。

标签: android gradle android-studio


【解决方案1】:

首先请将 Android Studio 更新到 0.8.1。然后你应该用apply plugin: 'com.android.application'替换apply plugin: 'android'。关于这个问题,你需要确保你已经安装了构建工具 20.0.0。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-12-01
    • 2015-09-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多