Execution failed for task ':app:packageDebug'.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
   > java.lang.IllegalArgumentException (no error message)

* 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

Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.5/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 12s
291 actionable tasks: 10 executed, 281 up-to-date

app/build.gradle

android {
...
   defaultConfig {
        ...
        multiDexEnabled true
    }
...
}
rm -rf build/output/apk

解决方案

你可能感兴趣的:(Execution failed for task ':app:packageDebug'.)