I built a simple ember-cordova app. When i ran ember cordova emulate which it gives an apk file but when the app opens up in the emulator it says
"net::ERR_FILE_NOT_FOUND(file:///android_asset/www/index.html)".
I have removed all references to {{rootURL}} from index.html and also remove the leading slash from rootURL. locationType is also set to hash.
My build was failing, that's why i was getting the file not found error. However the build was failing with a "Undefined error". I had to remove the platform using
ember cordova platform remove android
and reinstall it using
ember cordova platform add android
After doing these steps, it started working.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments