A problem occurred configuring project ‘:app‘.> Java 8 language support, as requested by ‘android. e

yu-Knight 2022-02-13 09:11:42 阅读数:308

problem occurred configuring project app

android studio  Error in project compilation  

A problem occurred configuring project ':app'.
> Java 8 language support, as requested by 'android.enableD8.desugaring= true' in your gradle.properties file, is not supported when 'android.useDexArchive= false'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Error resolution

In the project   gradle.properties  Add... To the document  

android.enableD8.desugaring = true
android.useDexArchive = true

Can solve

copyright:author[yu-Knight],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130911402948.html