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.
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