WARNING : No target specified, deploying to emulator

后端 未结 12 1847
死守一世寂寞
死守一世寂寞 2021-02-01 00:36

I\'m trying to run an ionic app on my mobile phone (Android 4.4.2). USB-Debugging is activated.

When i run the command \"ionic emulate android\" everyth

相关标签:
12条回答
  • 2021-02-01 01:18

    I got the solution by removing the Android emulator and re-create the emulator from AVD Manager of Android Studio.

    0 讨论(0)
  • 2021-02-01 01:20

    No target specified and no devices found, deploying to emulator When this message appears, you have to click START, and activate your emulator before.

    0 讨论(0)
  • 2021-02-01 01:21

    I had two problems (Ubuntu OS):

    1. I had a connection open with chrome//inspect - close that (simply close the tab)
    2. I missed the dialog that appears when you connect your device through USB cable. You must trust the computer.

    Now run the command cordova run android and look at your device there another dialog will be appeared click ok, now you are done! In the terminal you will see LAUNCH SUCCESS. By the way I removed the old app from my device too.

    0 讨论(0)
  • 2021-02-01 01:23

    I'm on a Mac.

    What worked for me was to heed the warning on the device that said no program on the Mac was available that could connect to the device, such as Android File Transfer.

    I installed that. Unplugged and replugged the USB cable. And voila.

    0 讨论(0)
  • 2021-02-01 01:28

    None of these worked for me on android 6.0 on a mac.

    I found this article: http://trendblog.net/android-file-transfer-not-working/

    quoting from it:

    • Enable Developer Mode by going to Settings > About Phone (at the very bottom usually) > press on Build Number repeatedly until the pop-up appears
    • Go to Settings > Developer Options
    • Enable USB debugging
    0 讨论(0)
  • 2021-02-01 01:28

    Once you are remove the USB plugin from the computer means it will not work. Already open the Chrome inspect in your PC means close that tab and run. In my case, just closing the Chrome Inspect panel and running ionic cordova run android worked.

    Thats all. Enjoy your coding

    0 讨论(0)
提交回复
热议问题