React Native Task :app:validateSigningDebug FAILED

前端 未结 7 765
名媛妹妹
名媛妹妹 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 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

提交回复
热议问题