이 gradle 오류가 발생했습니다.
오류 : (9, 0) Gradle DSL 메서드를 찾을 수 없음 : 'compile ()'
비슷한 질문을 참조하려고했지만 작동하지 않았습니다.
Android gradle 빌드 오류 : (9, 0) Gradle DSL 메서드를 찾을 수 없음 : 'compile ()'.
Build.Gradle을 동기화 할 때 "Gradle DSL 메서드를 찾을 수 없음 : 'compile ()'"오류가 발생합니다.
지원되지 않는 Gradle DSL 메서드가 발견되었습니다 : 'compile ()'!
내 build.gradle코드는 여기
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.0'
compile 'com.android.support:appcompat-v7:20.+'
compile 'com.google.android.gms:play-services:6.5.+'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
build.gradle(Module.app)
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.1"
defaultConfig {
applicationId "com.example.simplemaker.pushtest"
minSdkVersion 9
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:21.0.3'
}
내 코드에 어떤 문제가 있습니까?
제 영어 죄송합니다.
감사합니다!
