我有问题:
错误:(19,0)未找到Gradle DSL方法:'android()'
- 项目'x'可能正在使用gradle版本,并不包含该方法
打开gradle包装文件
- 构建文件可能缺少gradle插件
应用gradle插件
的build.gradle:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
android {
buildToolsVersion '23.0.0'
}
dependencies {
}
Run Code Online (Sandbox Code Playgroud)
app.gradle:
apply plugin: 'com.android.application'
android {
compileSdkVersion 22
buildToolsVersion "23.0.0 rc3"
compileOptions {
encoding "UTF-8"
}
defaultConfig {
applicationId "es.albertoramos.pfcalbertoramos"
minSdkVersion 15
targetSdkVersion 22
versionCode …
Run Code Online (Sandbox Code Playgroud) android ×1