[英]Failed to load resource: net::ERR_FILE_NOT_FOUND with Cordova
I am following the aerogear tutorial on https://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/ . 我正在关注https://aerogear.org/docs/guides/aerogear-cordova/AerogearCordovaPush/上的aerogear教程。
I have gone through this several times now and continue to have the same issue. 我已经经历了几次,并继续遇到同样的问题。
When deploying to Genymotion, and debugging using chrome, I see the following error: 当部署到Genymotion并使用chrome进行调试时,我看到以下错误:
file:///android_asset/www/plugins/aerogear-cordova-push/www/aerogear-push.js Failed to load resource: net::ERR_FILE_NOT_FOUND
file:///android_asset/www/plugins/aerogear-cordova-push/www/aerogear.ajax.js Failed to load resource: net::ERR_FILE_NOT_FOUND
cordova.js:1431 Uncaught Error: Module aerogear-cordova-push.AeroGear.ajax does not exist.
cordova.js:1185 deviceready has not fired after 5 seconds.
cordova.js:1178 Channel not fired: onPluginsReady
cordova.js:1178 Channel not fired: onCordovaReady
I notice that, when viewing in the Chrome inspector, that the plugin files are empty 我注意到,在Chrome检查器中查看时,插件文件为空 , yet in my local project there is contents for all the plugin files. ,但是在我的本地项目中,所有插件文件都有内容。
Does anyone know how to fix this? 有谁知道如何解决这一问题?
Thanks 谢谢
I cannot say for sure why fixed it, but I suspect it was due to either: 我不能肯定地说为什么要修复它,但是我怀疑是由于以下原因之一:
After reinstalling and re-setting permissions - and doing a restart - it worked correctly. 重新安装并重新设置权限-并重新启动后-它可以正常工作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.