Bomber
Bomber

Reputation: 10947

The Android App Bundle was not signed using react native

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

Answers (1)

MikeSli
MikeSli

Reputation: 977

From your post I can't figure out if you've also performed the middle parts of the walkthrough.

Setting up Gradle variables

  1. Place the my-upload-key.keystore file under the android/app directory in your project folder.
  2. Edit the file ~/.gradle/gradle.properties or android/gradle.properties, and add the following (replace ***** with the correct keystore password, alias and key password)

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

Related Questions