pRaNaY pRaNaY - 1 year ago 622
Android Question

How to enable Jack (Java Android Compiler Kit) in android studio

I am updated my androidstudio 2.1 stable.As per Android Studio 2.1 supports Android N Developer Preview
Android studio 2.1 support Jack (Java Android Compiler Kit) compiler .

How to add or use Jack in android studio?

Answer Source

The details on what is required to use Jack and how can be found in the documentation.

Here is the relevant part from the docs that goes in build.gradle on how to use jackOptions and set the compileOptions for java 1.8.

android {
    defaultConfig {
        jackOptions {
            enabled true

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download