WARNING : No target specified, deploying to emulator

后端 未结 12 1846
死守一世寂寞
死守一世寂寞 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:01

    If your app is already installed in your device and your device debuging is already enabled.

    Then uninstall the previous app and install the fresh apk

    sudo ionic cordova run android
    
    0 讨论(0)
  • 2021-02-01 01:07

    Once you've enabled your device for debugging, make sure to turn on usb tethering on the device;

    Settings > Tethering & Networks > USB tethering

    This fixed the problem for me.

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

    I had another developer tool opened (Chrome Inspect) and it "ate" the connection. In my case, just closing the Chrome Inspect panel and running ionic run android worked.

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

    In my case I had Android 5.1.1, and below are the steps I took:

    • Please check that your PC recognizes your phone (you can access the files like in a USB flash drive). If not please install the drivers from google here.
    • Please check that the USB debugging options is checked on your phone, then: 1- Go to Setting -> General -> '{} Developer options' 2- Look for the 'USB debugging' option 3- If the 'USB debugging' option is disabled then turn off 'Developer options' and turn it back on. Now you should be able to check the 'USB debugging' option.

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

    I solved the problem.

    Here is what I did: I typed into the command line: adb devices (located in the "platform-tools" folder in the Android SDK) which returned me an empty list.

    So I installed my phone's drivers, which I downloaded from the vendors homepage.

    Now the list contains my device and the app is started on my mobile phone.

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

    I had a different problem, with a very simple solution.
    When plugging in your Android device for the first time, it'll ask you to trust the computer's certificate. That popup screen disappeared on me, as I was just getting a call.

    Simply unplugging/replugging your phone and accepting your computer's certificate should do the trick!

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