React Native Task :app:validateSigningDebug FAILED

前端 未结 7 559
名媛妹妹
名媛妹妹 2021-01-31 02:42

I am completely new to react-native and android. I have downloaded a project from Github and used commands yarn install and react-native run-android to

相关标签:
7条回答
  • 2021-01-31 02:57

    I was having same error, It was solved by this https://coderwall.com/p/r09hoq/android-generate-release-debug-keystores

    do

    cd ./android/app/

    and then

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

    0 讨论(0)
  • 2021-01-31 03:05

    What went wrong: Execution failed for task ‘:app:validateSigningDebug’. > Keystore file ‘debug.keystore’ not found for signing config ‘debug’.

    debug keystore is missing in your android/app directory

    • First I installed all of my node packages with npm

      $ npm install

    • After installing all of my node dependencies I then attempted to run the app for the first time and ran into the error message described above. My first attempt at fixing the problem involved attempting to reinstall all of my native Android dependencies with gradle…

      $ cd android

      $ ./gradlew build --refresh-dependencies

      $ ./gradlew clean

    • Next, I attempted to create a new debug.keystore file myself using the following terminal commands:

      $ cd android/app

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

    0 讨论(0)
  • 2021-01-31 03:06

    Just download from official template https://raw.githubusercontent.com/facebook/react-native/master/template/android/app/debug.keystore

    Copy debug.keystore into your android/app/.

    Ex: mv ~/Downloads/debug.keystore /Users/lazaro/apps/myapp/android/app/

    ref: https://github.com/facebook/react-native/issues/25629#issuecomment-513245590

    0 讨论(0)
  • 2021-01-31 03:12

    Based on @rabbit87's answer the solution is running the following command inside ProjectName/Andoid/app directory solves the problem

    keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000
    
    0 讨论(0)
  • 2021-01-31 03:17

    npm I jetifier npx jetify

    Fixed it for me on react-native 0.60.0

    0 讨论(0)
  • 2021-01-31 03:19

    The problem is that the build is looking for the debug keystore and cannot find it.

    Keystore file /home/tawsif/react native/react-native-redux/android/app/debug.keystore not found for signing config 'debug'.

    There's an issue with the same problem in React Native GitHub. According to the page, you can solve it by creating a debug keystore. Quote from the thread:

    You can generate the debug keystore by running this command in the android/app/ directory: keytool -genkey -v -keystore debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000

    Link to the issue: https://github.com/facebook/react-native/issues/25629

    0 讨论(0)
提交回复
热议问题