Android Error with build.phonegap - file not found (file:///android_asset/www./index.html)

  • 2
  • Question
  • Updated 6 years ago
  • Answered
Android Error with build.phonegap = "Application Error the connection to the server was unsuccessful. (file:///android_asset/www./index.html)"

This app is build using NSBasic App Studio and it works ok in a browser but when I build it with build.phonegap and load it onto an Android device I get the above error.
Photo of Pro Certs

Pro Certs

  • 3 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 2
Photo of gh

gh

  • 34 Posts
  • 0 Reply Likes
Let me add that we (at AppStudio Support) have tried the apk on a variety of other devices and it worked fine. OP is using an Archos 101 Tablet.
Photo of Pro Certs

Pro Certs

  • 3 Posts
  • 0 Reply Likes
Also does not work on a simulator.
Photo of ismael jimoh

ismael jimoh

  • 4116 Posts
  • 192 Reply Likes
Hi,

What version of File plugin are you using?

If you are using the latest, there are some changes made to how to get fullpath/ specifying full path so it rhymes on all platforms.

So would recommend just using the normal way directories or files are referenced in HTML.

Thanks.

You could also let us know the context of usage as that would help.
Photo of Pro Certs

Pro Certs

  • 3 Posts
  • 0 Reply Likes
Hi, the webapp version of the app (same source code) can be found here http://electrician-apps.com/apps/Proj...