No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Cordova build dev "No target specified and no devices found, deploying to emulator"

    Help
    3
    7
    2926
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      nulele last edited by nulele

      Hello,

      suddenly while I was bulding, I got this error during the cordova build and now I can’t get the app to start on the emulator anymore… the weird thing is that it’s been working well until minutes ago!

      BUILD SUCCESSFUL in 3s
      42 actionable tasks: 3 executed, 39 up-to-date
      Built the following apk(s):
              D:\xxx\src-cordova\platforms\android\app\build\outputs\apk\debug\app-debug.apk
      Checking Java JDK and Android SDK versions
      ANDROID_SDK_ROOT=C:\Users\xxx\AppData\Local\Android\Sdk (recommended setting)
      ANDROID_HOME=C:\Users\xxx\AppData\Local\Android\Sdk (DEPRECATED)
      No target specified and no devices found, deploying to emulator
      ......
      

      The dots keep increasing but nothing happens.

      What I do is:

      • start emulator through android studio or with this command:
      C:\Users\xxx\AppData\Local\Android\Sdk\emulator\emulator.exe -avd "Nexus_6P"
      
      • build app with this command:
      quasar dev -m cordova -T android
      

      I’m on Windows 10.
      I don’t have any chrome debug window opened.
      I’m stuck and cannot work.

      Any idea? Thanks!

      PS: why ANDROID_HOME is DEPRECATED?

      1 Reply Last reply Reply Quote 0
      • F
        Florentin last edited by

        Hi,
        you can try this :

        • turn off you emulator (cordova/quasar will open it for you)
        • run this command : quasar dev -m cordova -T android --e emulator_name
        N 1 Reply Last reply Reply Quote 0
        • F
          Florentin last edited by

          PS: If you want to disapear the android_home is deprecated. You can just replace it by ANDROID_SDK_ROOT in your environnement variables.

          N 1 Reply Last reply Reply Quote 0
          • N
            nulele @Florentin last edited by nulele

            @Florentin said in Cordova build dev "No target specified and no devices found, deploying to emulator":

            Hi,
            you can try this :

            • turn off you emulator (cordova/quasar will open it for you)
            • run this command : quasar dev -m cordova -T android --e emulator_name

            Hi @Florentin and thank you, unfortunately for me this never happens. I always must start the emulator manually.

            I forgot to mention that I’ve already tried to explicitate the emulator:

            quasar dev -m cordova -T android --e "Nexus_6P"
            

            It says:

            BUILD SUCCESSFUL in 15s
            42 actionable tasks: 42 up-to-date
            Built the following apk(s):
                    D:\Progetti\EG\invoicex\src-cordova\platforms\android\app\build\outputs\apk\debug\app-debug.apk
            Checking Java JDK and Android SDK versions
            ANDROID_SDK_ROOT=C:\Users\nulele\AppData\Local\Android\Sdk (recommended setting)
            ANDROID_HOME=C:\Users\nulele\AppData\Local\Android\Sdk (DEPRECATED)
            Waiting for emulator to start...
            

            and nothing happens 😞

            1 Reply Last reply Reply Quote 0
            • N
              nulele @Florentin last edited by

              @Florentin said in Cordova build dev "No target specified and no devices found, deploying to emulator":

              PS: If you want to disapear the android_home is deprecated. You can just replace it by ANDROID_SDK_ROOT in your environnement variables.

              But the path is the same…

              ANDROID_SDK_ROOT=C:\Users\nulele\AppData\Local\Android\Sdk (recommended setting)
              ANDROID_HOME=C:\Users\nulele\AppData\Local\Android\Sdk (DEPRECATED)
              
              1 Reply Last reply Reply Quote 0
              • metalsadman
                metalsadman last edited by

                @nulele you’ll get more answer if you googled since this is jot a quasar issue here https://stackoverflow.com/questions/28944494/warning-no-target-specified-deploying-to-emulator.

                1 Reply Last reply Reply Quote 0
                • N
                  nulele last edited by

                  Well, somehow I managed to make quasar work with the emulator… maybe removing and recreating the avd did the trick… maybe reinstalling cordova package…
                  Anyway the emulator still doesn’t start automatically but it’s just a small annoyance.

                  For the sake of completeness I found this issue on cordova github: https://github.com/apache/cordova-android/issues/698
                  We are not alone… 😛

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post