【问题标题】:Error generating a signed APK in react native在本机反应中生成签名 APK 时出错
【发布时间】:2020-07-20 18:46:55
【问题描述】:

我正在尝试在 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

有没有人遇到过这个错误并且可以帮助我,我很绝望):

【问题讨论】:

    标签: javascript android react-native apk


    【解决方案1】:

    如果您尚未签署您的应用。按照在此链接中生成上传密钥: https://reactnative.dev/docs/signed-apk-android

    否则,请检查您是否已将密钥库放在 /android/app/ 文件夹中

    【讨论】:

    • 感谢您的回答。我再次生成了密钥库,但仍然返回相同的错误):
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-06-04
    • 1970-01-01
    • 2018-05-07
    • 1970-01-01
    • 2018-03-08
    • 1970-01-01
    相关资源
    最近更新 更多