Error

FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ‘:app:signReleaseBundle’. > A failure occurred while executing com.android.build.gradle.internal.tasks.FinalizeBundleTask$BundleToolRunnable > java.lang.NullPointerException (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 BUILD FAILED in 16s Running Gradle task ‘bundleRelease’… 17.5s Gradle task bundleRelease failed with exit code 1

Solve

It’s caused by the lack of key.properties.