Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:Minifying the variant used for tests is not supported when using Jack

I am getting this error in Android studio when i enable jackOptions in build.gradle

Error:Minifying the variant used for tests is not supported when using Jack

android {
  ...
  defaultConfig {
    ...
    jackOptions {
      enabled true
    }
  }
  compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
  }
}
like image 484
Vishal Yadav Avatar asked Jun 17 '17 12:06

Vishal Yadav


1 Answers

The Jack toolchain is deprecated. Use the new gradle plugin, and you'll also get rid of this error. Follow this tutorial to migrate your app.

like image 81
Ahmad Avatar answered Oct 17 '22 06:10

Ahmad