Java 8 language support, as requested by 'android.enableD8.desugaring= true' in your gradle.properties file, is not supported when 'android.useDexArchive= false'.
Asked
Active
Viewed 3,093 times
2
-
Possible duplicate of [How to enable Java 8 language features in Android studio](https://stackoverflow.com/questions/43423057/how-to-enable-java-8-language-features-in-android-studio) – Vikasdeep Singh Aug 09 '18 at 00:54
4 Answers
2
I guess you used tinker with old version. You can return your
classpath 'com.android.tools.build:gradle:3.2.0'
to
classpath 'com.android.tools.build:gradle:3.1.3'
maybe you can upgrade tinker version but I didn't verify it.
I used tinker verison
implementation 'com.tencent.tinker:tinker-android-lib:1.9.6'

Eric Aya
- 69,473
- 35
- 181
- 253

Dalai_Lama
- 631
- 6
- 6
0
Add this line in gradle.properties
android.enableD8=true

Armali
- 18,255
- 14
- 57
- 171

Divya Chhipani
- 21
- 1
- 2