react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

Build app with gradle command

Open asmi77 opened this issue 8 years ago • 1 comments

Hi everyone,

In the RNN v2 documentation, for Android part, it is said :

Now we need to instruct gradle how to build that flavor. To do so here two solutions:

8.1 Build app with gradle command prefered solution The RNN flavor you would like to build is specified in app/build.gradle. Therefore in order to compile only that flavor, instead of building your entire project using ./gradlew assembleDebug, you should instruct gradle to build the app module: ./gradlew app:asembleDebug. The easiest way is to add a package.json command to build and install your debug Android APK

I don't exactly see what this command is meant to be : "android": "cd ./android && ./gradlew app:assembleDebug && ./gradlew installDebug"

When launched, it actually builds the app successfully but nothing happened in Android emulator.

With react-native run-android command, the app is also build successfully and it runs properly on Android emulator.

This is why I'm wondering if the command : "android": "cd ./android && ./gradlew app:assembleDebug && ./gradlew installDebug" is necessary ?


Environment

  • React Native Navigation version: 16.4.1.
  • React Native version: 0.56.1
  • Platform(s: Android
  • Device info : Android Emulator - Nexus 6 API 26

asmi77 avatar Oct 19 '18 08:10 asmi77

We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the react-native-navigation tag.

support avatar Oct 20 '18 05:10 support