2
, 내 Gradle을 버전은 2.10이며, 다음과 같이 :Gradle을의 DSL 방법을 찾을 수 없습니다 : 'buildConfigFields'제목처럼
이...
distributionUrl=https\://services.gradle.org/distributions/gradle-2.10-all.zip
내 Gradle을 플러그인 버전은 2.1.2이며, 다음과 같이 :
classpath 'com.android.tools.build:gradle:2.1.2'
이 같은 내 응용 프로그램 모듈에서
, 내 코드 : 내가 프로젝트를 동기화 할 때
...
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.dazd.supplyinout"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
}
buildTypes {
debug {
buildConfigFields("BASE_URL": ['String', debugUrl])
}
release {
buildConfigFields('BASE_URL': ['BASE_URL', releaseUrl])
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
, 난 이런 식으로, 제목처럼 빌드 오류가 발생합니다 :
Error:(30, 0) Gradle DSL method not found: 'buildConfigFields()'
Possible causes:
The project 'SupplyInOut' may be using a version of Gradle that does not contain the method.
The build file may be missing a Gradle plugin.
아무도 도와 줄 수 있습니까?
here을 찾을 수 있습니다, 나는 당신에게, 어쨌든, 솔루션처럼 혼자 덕분에 그것을 해결! – JackRo