Home > front end >  Can't generate apk project that make with react native in android studio
Can't generate apk project that make with react native in android studio

Time:12-12

I have made a project with react native. now I want to generate an apk. but there isn't any generated icon as below picture and also there isn't exist Gradle script at the root of my project.

enter image description here

CodePudding user response:

Open android folder in android studio, you will see Gradle, libraries and can build apk, also if you want to generate a release apk you can do it with this command in android folder directory ./gradlew assembleRelease or gradlew assembleRelease

CodePudding user response:

Run npx react-native run-android --variant=release from the android folder. You can find the apk in:

'project_name'/android/app/build/outputs/apk/release
  • Related