Android Studio 3.0 Canary 2 still requires Jack for Java 8

I tried to enable Java 8 in Android 3.0 Canary 2, but I got an error that Jack is needed for Java 8. But this is annulling https://developer.android.com/guide/platform/j8-jack.html says jack is bigger not needed for version 3.0 for preview. What am I doing wrong.

compileOptions {
  sourceCompatibility JavaVersion.VERSION_1_8
  targetCompatibility JavaVersion.VERSION_1_8
}

      

+3


source to share


1 answer


Fixed problem. I tried to include java 8 in an existing project created in Android 2.4. So the gradle version was 3.x. Simplifying gradle to 4.x fixed the problem



+6


source







All Articles