Ember-cordova 示例应用程序:index.html 未找到
Ember-cordova sample app : index.html not found
我构建了一个简单的 ember-cordova 应用程序。当我 运行 ember cordova emulate 它给出了一个 apk 文件但是当应用程序在模拟器中打开时它说
"net::ERR_FILE_NOT_FOUND(file:///android_asset/www/index.html)".
我已从 index.html 中删除所有对 {{rootURL}} 的引用,并从 rootURL 中删除前导斜杠。 locationType 也设置为 hash.
我的构建失败了,这就是我收到找不到文件错误的原因。但是,构建失败并显示 "Undefined error"。我不得不使用
删除平台
ember cordova platform remove android
并使用
重新安装
ember cordova platform add android
完成这些步骤后,它开始工作了。
我构建了一个简单的 ember-cordova 应用程序。当我 运行 ember cordova emulate 它给出了一个 apk 文件但是当应用程序在模拟器中打开时它说
"net::ERR_FILE_NOT_FOUND(file:///android_asset/www/index.html)".
我已从 index.html 中删除所有对 {{rootURL}} 的引用,并从 rootURL 中删除前导斜杠。 locationType 也设置为 hash.
我的构建失败了,这就是我收到找不到文件错误的原因。但是,构建失败并显示 "Undefined error"。我不得不使用
删除平台ember cordova platform remove android
并使用
重新安装ember cordova platform add android
完成这些步骤后,它开始工作了。