6

when i try to generate a release version using the following command:

cd android && ./gradlew assembleRelease

an apk file is generated in the directory:

/app/build/outputs/apk/app-release-unsigned.apk

Unfortunately when i try to install the apk on my phone with Android 5. i got the following error:

There was a problem parsing the package.

enter image description here

Note that i am using react native under windows.

Moussawi7
  • 12,359
  • 5
  • 37
  • 50

1 Answers1

8

I am answering on my own question. The issue has been solved by generating a signing key as mentioned in https://facebook.github.io/react-native/docs/signed-apk-android.html .

Moussawi7
  • 12,359
  • 5
  • 37
  • 50