我升級了Android Studio來AS 0.6然後導入0.3Android studio構建腳本錯誤,發現不支持的gradle DSL方法:android()!
我收到錯誤,如開發項目:
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
}
這可能是什麼問題?
是否有指導說明如何升級項目?