Android Studio 또는 설정에 문제가 있습니까?java8 지원을 추가하면 Android 스튜디오 오류가 발생합니다.
Error:(22, 0) Could not find method jackOptions() for arguments [[email protected]] on project ':app' of type org.gradle.api.Project.
은이 나는 잭 내 개발 환경에서 사용할 수 없습니다 생각, 어떻게 실수를 발견하고 그것을 해결하기 위해 내 build.gradle
android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
defaultConfig {
applicationId "com.twtstudio.wepeiyanglite"
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
jackOptions {
enabled true
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.2.0-beta1'
classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
입니까? 당신이를 완전히 제거 할 수 있도록,
defaultConfig {
...
jackOptions {
enabled true
}
}
가 중복 최신 설명서에 따르면
defaultConfig {
...
jackOptions {
enabled true
}
}
참조하십시오, 그것을 작동합니다, 감사합니다! –
내부의 jackOptions 이동 – life2015