-1
我收到下面的生成錯誤,當我嘗試同步我的項目:搖籃DSL找不到方法:「andapply()」
Error:(1, 0) Gradle DSL method not found: 'andapply()'
我進口這個項目今天在Eclipse到Android工作室。
下面是從項目目錄中的build.gradle文件:
buildscript {
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.5.0'
}
}
allprojects {
repositories {
jcenter()
}
}
但是問題就來了這裏弗羅姆:
andapply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.2"
defaultConfig {
applicationId "com.example.seamansbutton"
minSdkVersion 14
targetSdkVersion 21
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
}
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
可能是什麼問題?
這是那麼簡單?謝謝先生! – Costis94