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 open asset URL: file:///android_asset/cordova.js

    Help
    3
    6
    3885
    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.
    • S
      Sujan Dev last edited by

      HI,
      i am trying to run quasar project from my android app.

      i have a quasar project and i build it successfully. after build i copy all the files from dist folder to android assets folder and i set all the webview settings in android file. but when i run the app i got the error

      Unable to open asset URL: file:///android_asset/cordova.js

      can you plz help me.

      J 1 Reply Last reply Reply Quote 0
      • J
        JCharante @Sujan Dev last edited by JCharante

        @Sujan-Dev

        You mentioned you copied the files from dist/ to the assets folder? Do you mean cordova/www/ by that? It isn’t too important, because you should run $ quasar wrap cordova to link them together so you don’t have to copy them manually.

        I don’t know why you modified your index.html file to set the location of cordova.js to somewhere else, as it’ll be generated + included automatically when running (while in the cordova/ directory) $ cordova run or $ cordova build

        Docs for Quasar w/ Cordova

        1 Reply Last reply Reply Quote 0
        • S
          Sujan Dev last edited by Sujan Dev

          @JCharante

          thanks for your reply. i found the files in cordova/assets/www folder

          1 Reply Last reply Reply Quote 0
          • rstoenescu
            rstoenescu Admin last edited by

            You shouldn’t include or directly import cordova by yourself. Quasar does this automatically and you got a global cordova object available.

            S 1 Reply Last reply Reply Quote 0
            • S
              Sujan Dev @rstoenescu last edited by

              @rstoenescu thanks. i used the files from cordova/assets/www after cordova build.

              1 Reply Last reply Reply Quote 0
              • rstoenescu
                rstoenescu Admin last edited by

                No need to import that. They get injected by default. Part of how Cordova works.

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