As per mentioned in developer.android website
"The Jack toolchain is deprecated, as per this announcement. If your project depends on Jack, you should migrate to using Java 8 support built into Android Studio’s default toolchain."
I need to use lambda expressions so I have disabled the jack options, but when I compile my code, I get the following error
Error:Jack is required to support Java 8 language features. Either enable Jack or remove sourceCompatibility JavaVersion.VERSION_1_8.
Below is the screenshot of my build.gradle file
Check you version of com.android.tools.build:gradle
.
I had the same error. My solution:
com.android.tools.build:gradle:3.0.0-alpha6
1.1.3-2
google()
I'm using AS 3.0 Canary 6.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With