There is issue in Gradle File(error message in below)?


Error Message-

Could not find method jackOptions() for arguments
[bu[email protected]7e2c902d] on DefaultConfig_Decorated{name=main, dimension=null,
minSdkVersion=DefaultApiVersion{mApiLevel=19, mCodename=’null’},
targetSdkVersion=DefaultApiVersion{mApiLevel=25, mCodename=’null’},
renderscriptTargetApi=null, renderscriptSupportModeEnabled=null,
renderscriptNdkModeEnabled=null, versionCode=1, versionName=1.0,
applicationId=com.vpaliy.loginconcept, testApplicationId=null,,
testInstrumentationRunnerArguments={}, testHandleProfiling=null,
testFunctionalTest=null, signingConfig=null, resConfig=null,
mBuildConfigFields={}, mResValues={}, mProguardFiles=[],
mConsumerProguardFiles=[], mManifestPlaceholders={},
mWearAppUnbundled=null} of type

Here it is build.gradle(

apply plugin: ''

    android {

    compileSdkVersion 25
    buildToolsVersion "25.0.3"
    defaultConfig {
        applicationId "com.vpaliy.loginconcept"
        minSdkVersion 19
        targetSdkVersion 25
        versionCode 1
        versionName "1.0"
        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'),         

dependencies {
    compile 'com.jakewharton:butterknife:8.5.1'
    annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
    compile 'com.andkulikov:transitionseverywhere:1.7.4'
    compile ''
    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile ''                                                                                                                                 

    compile 'com.github.bumptech.glide:glide:3.7.0'
    compile 'com.github.Q42:AndroidScrollingImageView:1.2'
    compile ''
    compile ''


Starting from Android studio 3.1, JackOptions have been deprecated. Based on the 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

You can refer to the announcement here

Answered By – Sagar

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published