If no such file exists then you will get ‘No such file or directory’ message. Generate the Android release bundle file manually Place the my-upload-key.keystore file under the android/app directory in your project folder.Ĭreate a new file in the android folder: android/keystore.properties and add the following (but obviously with your own passwords).ĭoing it this way ensures that the project will still work if someone else clones it from Git without the keystore.properties file - perfect. Setting up Gradle variables and safely loading them in The keystore contains a single key, valid for 10000 days. It then generates the keystore as a file called my-upload-key.keystore. This command prompts you for passwords for the keystore and key and for the Distinguished Name fields for your key. ![]() Keytool -genkeypair -v -storetype PKCS12 -keystore my-upload-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000 ![]() On Windows keytool must be run from C:\Program Files\Java\jdkx.x.x_x\bin. You can generate a private signing key using keytool. I'll show you how to securely load in your gradle variables so that the project can be safely pushed to Git without exposing your passwords (something that is annoyingly not covered in other tutorials!). In this tutorial I'll show you how to make a React Native signed release build APK for Android that can be uploaded to the Google Play store.
0 Comments
Leave a Reply. |