gpt4 book ai didi

android - Gradle File中有问题(下面的错误消息)?

转载 作者:行者123 更新时间:2023-12-03 03:58:58 26 4
gpt4 key购买 nike

错误信息-

Could not find method jackOptions() for arguments [build_8yvoh28709tkfmgonv9e1pntf$_run_closure1$_closure3$_closure6@7e2c902d] on DefaultConfig_Decorated{name=main, dimension=null, minSdkVersion=DefaultApiVersion{mApiLevel=19, mCodename='null'}, targetSdkVersion=DefaultApiVersion{mApiLevel=25, mCodename='null'}, renderscriptTargetApi=null, renderscriptSupportModeEnabled=null, renderscriptSupportModeBlasEnabled=null, renderscriptNdkModeEnabled=null, versionCode=1, versionName=1.0, applicationId=com.vpaliy.loginconcept, testApplicationId=null, testInstrumentationRunner=android.support.test.runner.AndroidJUnitRunner, testInstrumentationRunnerArguments={}, testHandleProfiling=null, testFunctionalTest=null, signingConfig=null, resConfig=null, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}, mWearAppUnbundled=null} of type com.android.build.gradle.internal.dsl.DefaultConfig.



这是build.gradle(module.app)
apply plugin: 'com.android.application'

android {

compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.vpaliy.loginconcept"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner
"android.support.test.runner.AndroidJUnitRunner"
vectorDrawables.useSupportLibrary = true
jackOptions {
enabled true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'),
'proguard-rules.pro'
}
}
}


dependencies {
compile 'com.jakewharton:butterknife:8.5.1'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
compile 'com.andkulikov:transitionseverywhere:1.7.4'
compile 'com.android.support:design:25.3.1'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.android.support:recyclerview-v7:25.3.1'

compile'net.yslibrary
.keyboardvisibilityevent:keyboardvisibilityevent:2.1.0'
compile 'com.github.bumptech.glide:glide:3.7.0'
compile 'com.github.Q42:AndroidScrollingImageView:1.2'
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
}

最佳答案

从Android Studio 3.1开始,已弃用JackOptions。基于documentation:

If your project depends on Jack, you should migrate to using Java 8 support built into Android Studio’s default toolchain.

To disable Jack and switch to the default toolchain, simply remove the jackOptions block from your module’s build.gradle



您可以引用公告 here

关于android - Gradle File中有问题(下面的错误消息)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50178842/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com