嗨,我的Android expo版本在第5步(运行Gradle)中出错了。当我使用APK进行构建时会出现此错误。
具体地说,它停止在app:singReleaseBundle任务上。
Task :app:signReleaseBundle FAILED
[stderr]
FAILURE: Build failed with an exception.
[stderr]
* What went wrong:
[stderr]
Execution failed for task ':app:signReleaseBundle'.
[stderr]
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
[stderr]
> Failed to read key XXXXXXX= from store "/tmp/turtle/keystore-XXXXXXX.jks": Invalid keystore format
[stderr]
* Try:
[stderr]
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.
[stderr]
* Get more help at https://help.gradle.org
[stderr]
BUILD FAILED in 4m 40s
32 actionable tasks: 32 executed
Error: ./gradlew exited with non-zero code: 1
at ChildProcess.completionListener (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:52:23)
at Object.onceWrapper (events.js:418:26)
at ChildProcess.emit (events.js:311:20)
at ChildProcess.EventEmitter.emit (domain.js:482:12)
at maybeClose (internal/child_process.js:1021:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)
...
at spawnAsync (/app/turtle/node_modules/@expo/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:17:21)
at spawnAsyncThrowError (/app/turtle/node_modules/@expo/xdl/build/detach/ExponentTools.js:190:45)
at buildShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:912:11)
at async Object.createAndroidShellAppAsync (/app/turtle/node_modules/@expo/xdl/build/detach/AndroidShellApp.js:406:5)
at async runShellAppBuilder (/app/turtle/build/builders/android.js:83:9)
at async Object.buildAndroid [as android] (/app/turtle/build/builders/android.js:31:28)
at async build (/app/turtle/build/jobManager.js:158:24)
at async processJob (/app/turtle/build/jobManager.js:103:32)
at async Object.doJob (/app/turtle/build/jobManager.js:35:5)
at async main (/app/turtle/build/server.js:44:13)
有人对如何解决此错误有任何建议吗?