7

How to get debug version of react-native app. For release version of apk, i am using >cd android && ./gradlew assembleRelease. Generated apk will be stored at app/build/outputs/apk.

Is there any command like this to generate debug version of apk? Please let me know the path where it stores.

Thanks.

2 Answers2

13

Use

cd android && ./gradlew assembleDebug

to generate debug apk.

Apk will be generated in directory

app/build/outputs/apk

apk name 'app-debug.apk'

Jickson
  • 5,133
  • 2
  • 27
  • 38
-3

the debug apk requires development server to be running. so please use "react-native start" to start the server and run your app in the same network as of your pc. now change the development server and port setting in your mobile to the Ip address of your pc and 8081 port. Hope this helps.

Ankit
  • 395
  • 1
  • 9