FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:mergeExtDexDebug'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> java.nio.file.NoSuchFileException: build\app\intermediates\external_file_lib_dex_archives\debug\out
* 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.
* Get more help at https://help.gradle.org
BUILD FAILED in 8s
Finished with error: Gradle task assembleDebug failed with exit code 1
参考:https://stackoverflow.com/questions/57997668/project-fails-to-compile-after-renaming
将
android {
compileSdkVersion 28
buildToolsVersion "29.0.2"
改为
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"