【发布时间】:2014-06-11 12:58:13
【问题描述】:
我将Android Studio升级到AS 0.6,然后导入AS 0.3开发的项目
我收到如下错误:
Build script error,unsupported Gradle DSL method found : android()'!,
Possible causes could be:
- you are using Gradle version where the method is absent
("open_gradle_settings">Fix Gradle settings</a>)
- you didn't apply Gradle plugin which provides the method
(<a href="apply_gradle_plugin">Apply Gradle plugin</a>)
or there is a mistake in a build script (<a href="goto_source">Goto source</a>)
我将 build.gradle 中的依赖路径更改为:
dependencies {
classpath 'com.android.tools.build:gradle:0.11.+'
}
android {
compileSdkVersion 19
buildToolsVersion "19.1.0"
defaultConfig {
minSdkVersion 14
targetSdkVersion 14
}
可能有什么问题?
有没有说明如何升级项目的指南?
【问题讨论】:
标签: android-studio