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

Run android command doesn't work with multiple emulators

Open digeff opened this issue 10 years ago • 1 comments

  • React-Native VS Code extension version: 1.3-rc0
  • VSCode version: 10.12-alpha
  • OS platform and version: Windows 10 entreprise
  • React Native version: 0.22.2
  • (If relevant) Output of the React-Native output channel (View -> Toogle Output -> Select React-Native in ListBox):
### Attempting to start the React Native packager
### Packager is already running.
### Executing command: react-native.cmd run-android
### Executing command: adb -s 169.254.56.136:5555 shell am start -n com.sampleapplication_22/.MainActivity
### Finished executing: react-native.cmd run-android

[5:49:47 PM] request:/index.android.bundle?platform=android&dev=true&hot=false [5:49:47 PM] request:/index.android.bundle?platform=android&dev=true&hot=false (23ms)

### Starting: Intent { cmp=com.sampleapplication_22/.MainActivity }

##########

### Finished executing: adb -s 169.254.56.136:5555 shell am start -n com.sampleapplication_22/.MainActivity
### Executing command: adb -s 169.254.84.95:5555 shell am start -n com.sampleapplication_22/.MainActivity

'which' is not recognized as an internal or external command, operable program or batch file. JS server already running. Building and installing the app on the device (cd android && gradlew.bat installDebug)...

### Starting: Intent { cmp=com.sampleapplication_22/.MainActivity }

##########

### Finished executing: adb -s 169.254.84.95:5555 shell am start -n com.sampleapplication_22/.MainActivity

:app:preBuild UP-TO-DATE :app:preDebugBuild UP-TO-DATE :app:checkDebugManifest :app:preReleaseBuild UP-TO-DATE :app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE :app:prepareComAndroidSupportRecyclerviewV72301Library UP-TO-DATE :app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE :app:prepareComFacebookFrescoDrawee081Library UP-TO-DATE :app:prepareComFacebookFrescoFbcore081Library UP-TO-DATE :app:prepareComFacebookFrescoFresco081Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipeline081Library UP-TO-DATE :app:prepareComFacebookFrescoImagepipelineOkhttp081Library UP-TO-DATE :app:prepareComFacebookReactReactNative0222Library UP-TO-DATE :app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE :app:prepareDebugDependencies :app:compileDebugAidl UP-TO-DATE :app:compileDebugRenderscript UP-TO-DATE :app:generateDebugBuildConfig UP-TO-DATE :app:generateDebugAssets UP-TO-DATE :app:mergeDebugAssets UP-TO-DATE :app:generateDebugResValues UP-TO-DATE :app:generateDebugResources UP-TO-DATE :app:mergeDebugResources UP-TO-DATE :app:bundleDebugJsAndAssets SKIPPED :app:processDebugManifest UP-TO-DATE :app:processDebugResources UP-TO-DATE :app:generateDebugSources UP-TO-DATE :app:processDebugJavaRes UP-TO-DATE :app:compileDebugJavaWithJavac UP-TO-DATE :app:compileDebugNdk UP-TO-DATE :app:compileDebugSources UP-TO-DATE :app:preDexDebug UP-TO-DATE :app:dexDebug UP-TO-DATE :app:validateDebugSigning :app:packageDebug UP-TO-DATE :app:zipalignDebug UP-TO-DATE :app:assembleDebug UP-TO-DATE :app:installDebug Skipping device 'emulator-5606' (emulator-5606): Device is null. Skipping device 'emulator-5650' (emulator-5650): Device is null. Skipping device 'emulator-5584' (emulator-5584): Device is null. Installing APK 'app-debug.apk' on '5" Marshmallow (6.0.0) XHDPI Phone - 6.0' Installing APK 'app-debug.apk' on '5.5" Marshmallow (6.0.0) XXHDPI Phone - 6.0' Installed on 2 devicess.

BUILD SUCCESSFUL

Total time: 11.938 secs Picked up _JAVA_OPTIONS: -Xmx512M Starting the app (C:\Program Files (x86)\Android\android-sdk/platform-tools/adb shell am start -n com.sampleapplication_22/.MainActivity)... error: more than one device/emulator

Steps to Reproduce:

  1. Run Android from the Command Palette

digeff avatar Mar 31 '16 00:03 digeff

There is also an issue with the packager, and we executing react-native.cmd run-android before the packager finishes loading, because the promises are returning sooner that they should.

digeff avatar Mar 31 '16 02:03 digeff