mardi 29 mars 2016

How to set URI correctly in a cordova project?

I use cordova-cli to build an android app. The app can not access resource correctly. The error is

Failed to load resource: net::ERR_FILE_NOT_FOUND

And I found the URI is

file:///assets/media/images/stop-sm.png

I think it should be

file:///android_asset/www/assets/media/images/stop-sm.png

but I don't know where and how to set the URI correctly. Any advices or hints are appreciated. Thanks in advance.

[www]
  [assets]
    [media]
      [images]
         stop-sm.png
   xxx.js
   xxx.css
 index.html




Aucun commentaire:

Enregistrer un commentaire