美文网首页React Native开发
React Native validateSigningDebu

React Native validateSigningDebu

作者: collin小智 | 来源:发表于2019-08-14 11:33 被阅读2次

    原始错误信息:

    > Task :app:validateSigningDebug FAILED
    
    Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
    Use '--warning-mode all' to show the individual deprecation warnings.
    See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
    34 actionable tasks: 2 executed, 32 up-to-date
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Execution failed for task ':app:validateSigningDebug'.
    > Keystore file '/Users/collin/Documents/workspace/job/xunwu/dajx_app/android/app/debug.keystore' not found for signing config 'debug'.
    
    * 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 2s
    

    错误描述

    这个错误是在编译 Android APP 时,无法找到对应的 debug.keystore 文件导致的验签失败,只需要重新生成 debug.keystore 文件即可。

    解决方案

    进入 RN 项目的 android/app 目录中执行下面命令来重新生成 debug.keystore 文件。

    keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
    

    相关文章

      网友评论

        本文标题:React Native validateSigningDebu

        本文链接:https://www.haomeiwen.com/subject/pcqgjctx.html