[英]Building PhoneGap app for Windows Phone results in Cordova class not found error
I'm doing 我正在做
phonegap local build wp8
which finishes successfully and creates a CordovaAppProj_Debug_AnyCPU.xap
. 这将成功完成并创建一个
CordovaAppProj_Debug_AnyCPU.xap
。 When I now try to run this on my Windows Phone device I'm getting a 现在,当我尝试在Windows Phone设备上运行此命令时,
Error initializing Cordova: Class not found
alert. 警报。 Same when building from Visual Studio.
从Visual Studio构建时相同。
I could need some assistance with that, thanks! 对此,我可能需要一些帮助,谢谢!
I had a similar problem with a Cordova project. 我在Cordova项目中遇到了类似的问题。
The build of the app was successful: 应用程序的构建成功:
cordova build wp8
科尔多瓦建立WP8
However, the start of the app resulted in the same alert message. 但是,该应用程序的启动导致了相同的警报消息。
I solved the problem by removing the windows phone 8 platform 我通过删除Windows Phone 8平台解决了问题
cordova platforms rm wp8
科尔多瓦平台rm wp8
and adding it again 并再次添加
cordova platforms add wp8
科尔多瓦平台添加WP8
This might also work for your Phonegap problem. 这也可能适用于您的Phonegap问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.