React-Activate Generated Apk not working

Asked

Viewed 997 times

0

Good morning guys, is the following I started now in React-Native and did a small application follow as in the documentation to generate an apk https://facebook.github.io/react-native/docs/signed-apk-android.html but when I try to open it on cell phone or emulator it doesn’t work, it doesn’t even open... I’ve been racking my brain about it since yesterday

  • React-Native applications today are generated in many ways to respond to you just like that. Before I tell you how you will generate the apk, I need to know how you built your application first. You followed the basic tutorial of creating an application with native code, or you created an application with expo?

  • The Tutorial you followed is for the first type. For the second, you will use the expo itself to compile and generate your application. To do so, follow the steps of this tutorial: https://docs.expo.io/versions/latest/guides/building-standalone-apps.html

  • If you open the emulator and with the terminal in the project folder give the command react-native run-android the application works on emulator?

  • works yes, so I do not understand why when I try to generate the apk it does not open on mobile.

1 answer

1

I had that problem once. I deleted the files from the C: Seuapp android app build outputs apk release - folder (the output.json and .apk file that were inside that folder). Then I executed the command gradlew assembleRelease again.

When I installed the application the same worked.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.