com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable

Har*_*tti 6 android build gradle apk android-studio

当我尝试构建 APK 时会出现此问题。否则,当我运行该应用程序时,它运行时不会出现任何问题。

这是详细信息的 logcat:

Execution failed for task ':app:packageGeneralQaDebug'.
> Multiple task action failures occurred:
   > A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
      > java.io.IOException: Failed to create '/Users/muhammad/Documents/Example/app/build/outputs/apk/appGeneralQa/debug/example.apk'
   > A failure occurred while executing

* 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.

Run Code Online (Sandbox Code Playgroud)

小智 0

失败:构建失败并出现异常。

  • 出了什么问题:任务“:app:packageRelease”执行失败。

执行 com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable SigningConfig“release”时发生失败,缺少必需的属性“storeFile”。

  • 尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。使用 --scan 运行以获得完整的见解。
  • 在https://help.gradle.org获取更多帮助

类似的问题....