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

    [V1] [Solved] Cordova Set-up Ubuntu / Linux

    Help
    3
    3
    967
    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.
    • M
      mKomo last edited by mKomo

      Hello all!

      So I’ve recently started playing around with cordova, and I’m sharing a few technical issues I encountered along the way

      1. Missing emulator engine

      PANIC: Missing emulator engine program for 'x86' CPU.

      Explanation

      The latest version of android studio stores emulator bins under ~/Android/Sdk/emulator

      Hence on my system the wrong binaries were running when cordova loads

      Solution

      First check where the emulator binary lives via:

      $ which emulator
      

      If you get home/<user_name>/Android/tools/emulator then update the .bashrc PATH

      1. vim ~/.bashrc or user an editor of you’re choice
      2. export PATH=" ........ :$ANDROID_HOME/emulator

      note This needs to come before any reference to $ANDROID_HOME/tools

      2. /dev/kvm permission denied

      note virtualization technology needs to be enabled. This is done within your BIOS settings

      Solution

      1. $ sudo apt install qemu-kvm
      2. $ sudo adduser <USERNAME> kvm
      3. $ sudo chown <USERNAME> /dev/kvm
      4. Restart your computer

      3. CLEARTEXT_NOT_PERMITTED

      The emulator is running but the cordova app fails to load resulting in the following error:

      application error CLEARTEXT_NOT_PERMITTED

      Explanation

      Recent version of android (API 28 and above) don’t allow connections to http servers as they are considered insecure. However during development are server is http

      see android-docs for more

      Solution

      Make an avd that uses an android image with API version less than 28
      ex. running android 8.0

      I encountered a couple more issues but these are the main ones.
      Please note I’m new to cordova so these may not be the best solutions but they worked in my case.

      1 Reply Last reply Reply Quote 0
      • king_of_leon
        king_of_leon last edited by

        I am having the same issue in mac

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

          @mKomo you helped me, thanks!

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