[英]Error generating a signed APK in react native
我正在嘗試在 react native 上為 android 生成一個簽名的 APK,但我沒有得到它,終端在下面返回此錯誤:
> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
Welcome to React Native!
Learn once, write anywhere
info Writing bundle output to:, C:\Users\paulo\Documents\Sperio\speriomob\android\app\build\generated\assets\react\release\index.android.bundle
info Writing sourcemap output to:, C:\Users\paulo\Documents\Sperio\speriomob\android\app\build\generated\sourcemaps\react\release\index.android.bundle.map
info Done writing bundle output
info Done writing sourcemap output
info Copying 10 asset files
info Done copying assets
> Task :app:processReleaseGoogleServices
Parsing json file: C:\Users\paulo\Documents\Sperio\speriomob\android\app\google-services.json
> Task :app:lintVitalRelease
Calling mockable JAR artifact transform to create file: C:\Users\paulo\.gradle\caches\transforms-2\files-2.1\7b924f61dca3b36e28aeb94601753e06\android.jar with input C:\Android\Sdk\platforms\android-29\android.jar
> Task :app:validateSigningRelease FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:validateSigningRelease'.
> Keystore file not set for signing config release
* 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.2/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 5m 46s
249 actionable tasks: 249 executed
有沒有人遇到過這個錯誤並且可以幫助我,我很絕望):
如果您尚未簽署您的應用程序。 按照在此鏈接中生成上傳密鑰: https://reactnative.dev/docs/signed-apk-android
否則,請檢查您是否已將密鑰庫放在 /android/app/ 文件夾中
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.