Phonegap解决错误:Error initializing Cordova:Class not found
来源:互联网 发布:pdf免费编辑软件 编辑:程序博客网 时间:2024/05/20 19:47
原文地址:http://blog.csdn.net/aaawqqq/article/details/21243869
Phonegap 解决错误:
Alert
[ERROR]Error initializing Cordova:Class not found
发现bug后找原因 网上说是 因为找不到 res/xml 文件夹下的 config.xml 文件;
但我有这个config.xml
我想了一下 是不是因为没有找到指定的config.xml中的 feature配置
最后找到了 是因为我调用系统的 Device 信息 没有加标签
- <!-- 设备 -->
- <feature name="Device" >
- <param
- name="android-package"
- value="org.apache.cordova.device.Device" />
- </feature>
出现这个bug 的原因是调用phonegap的插件 没有找到相对应的java类
解决思路:
1 检查 res/xml 目录下有无 config.xml 文件
2 检查 config.xml 文件中 feature 标签 是否完善
0 0
- Phonegap解决错误:Error initializing Cordova:Class not found
- Phonegap解决错误:Error initializing Cordova:Class not found
- Phonegap解决错误:Error initializing Cordova:Class not found
- 完美解决Error initializing Cordova:Class not found
- "[ERROE] Error initializing Cordova: Class not found” only on Android
- 将cordova集成到android项目中"Error initializing Cordova:Class not found"
- phonegap archive 报错 Cordova/CDVViewController.h' file not found
- phonegap archive 报错 Cordova/CDVViewController.h' file not found
- ionic/cordova/phoneGap安装后报错command not found
- Error: Class 'SimplePasswordHasher' not found
- 解决CentOS出现Class 'PDO' not found 错误
- class not found错误解决办法
- Class 'PDO' not found 错误
- Phonegap/Cordova编写跨平台-- iOS安装过程(错误 Error: could not start active Xcode path '/Volumes/Xcode/...)
- configure: error: *** libmcrypt was not found 错误解决
- Webpack错误解决(一):ERROR in Entry module not found
- Webpack错误解决(一):ERROR in Entry module not found
- Class Not Found Exception解决
- jQuery 选择器大全
- Binary Tree Inorder Traversal (Java)
- 第三方集成那些事 - 吐槽篇
- 如何隐藏table的左/右/上/下边框
- CCS+C6678LE开发记录05:编译并使用开源JPEG图像(解)压缩库libjpeg
- Phonegap解决错误:Error initializing Cordova:Class not found
- PHP反射机制实现动态代理的代码
- mysqldump: Got errno 28 on write
- Android TextView相关属性
- M*LMM缩略图文件管理模式模块开发(一个含有listview和gridview浏览模式的文件管理器)
- CSDN精选Android开发博客
- Linux线程-pthread_kill
- 《一见》采访超级表格创始人陈坤极
- nodejs stream 手册