Reputation: 10947
I get the above error when I try and upload my .aab file to the play console.
After following the react-native docs, and running:
keytool -genkeypair -v -keystore xxx.keystore -alias xxx -keyalg RSA -keysize 2048 -validity 10000
Then, ./gradlew bundleRelease
.
It creates the following file:
./android/app/build/outputs/bundle/release/app.aab
When I upload this I get the error.
How can I sign my app?
Update:
I actually missed a set out from the docs. Although, when I sign my app I get your
Android App Bundle is signed with the wrong key. Ensure that your app bundle is signed with the correct signing key and try again: SHA1: 7C:AC:....yadda....:B6:E9:8A.
I am using a .keystore file from a previous app I have uploaded with no problems.
Upvotes: 1
Views: 2803
Reputation: 977
From your post I can't figure out if you've also performed the middle parts of the walkthrough.
Adding signing config to your app's Gradle config
The last configuration step that needs to be done is to setup release builds to be signed using upload key. Edit the file android/app/build.gradle in your project folder, and add the signing config
Could you confirm you've done this or either perform these steps and try again
Upvotes: 1