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

    Unable to find node_modules/@capacitor/android/capacitor

    CLI
    3
    4
    2240
    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.
    • J
      jrhopkins83 last edited by

      I’m trying to build a capacitor app for Android and get the following error when running quasar dev -m capacitor -T android:
      “Unable to find node_modules/@capacitor/android/capacitor. Are you sure @capacitor/android is installed? This file is currently required for Capacitor to function.”

      I was able to successfully develop an iOS app with capacitor. When I look in the src-capicitor/node_modules/@capacitor folder, I see a subfolder for ios but not android.

      I’ve googled solutions but can’t find any reports of the same problem.
      Steps:
      Created a new Quasar vue project
      ran quasar mode add capacitor
      ran quasar dev -m capacitor -T android

      I decided to try capacitor b/c I can’t get cordova to build with Android either after spending 2 days trying to resolve one problem after another.

      Really need to get this working so any help would be greatly appreciated.

      1 Reply Last reply Reply Quote 1
      • J
        jrhopkins83 last edited by

        I’ve resolved the problem but it seems this is a Quasar build problem.

        It seems the first you run “quasar dev -m capacitor -T …” for ios or android it adds capacitor for that platform correctly but when you run it for the second platform (i.e. android if you created ios first) it doesn’t add all of the subdirectories for capacitor.

        I resolved by removing the android folder in the src-capacitor then running “npx add capacitor android”.

        metalsadman 1 Reply Last reply Reply Quote 0
        • metalsadman
          metalsadman @jrhopkins83 last edited by

          @jrhopkins83 maybe file a bug report as well, although the specific way as you did, is the normal way to add platform per capacitor guide.

          1 Reply Last reply Reply Quote 0
          • A
            anli last edited by

            For me it did a yarn install in the src-capacitor subfolder to fix this problem.

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