cordova提供TypeError:无法读取属性' DATA_URL'的未定义:68 [英] cordova giving TypeError: Cannot read property 'DATA_URL' of undefined:68
问题描述
我正在使用cordova测试项目来制作带有eclipse的应用程序.
I am using the cordova test project to make an app with eclipse.
我按照以下步骤操作(这些都位于cordova-3.3.0/cordova-android文件夹中的README文件中).
I followed the following steps (these are inside the README inside the cordova-3.3.0 /cordova-android folder).
将Cordova Android项目导入Eclipse
Importing a Cordova Android Project into Eclipse
- 文件>新建>项目...
- Android> Android项目
- 从现有源创建项目(指向在tmp/android中找到的生成的应用)
- 右键单击libs/cordova.jar并添加到构建路径
- 右键单击项目根:运行方式">运行配置"
- 单击目标"选项卡,然后选择手动"(通过这种方式,您可以选择要构建的仿真器或设备)
我尝试过的项目是:cordova-3.3.0 \ cordova-android \ frameworkcordova-3.3.0 \ cordova-android \ test
The projects i tried are: cordova-3.3.0\cordova-android\framework cordova-3.3.0\cordova-android\test
我一直收到相同类型的错误:未捕获的TypeError:无法读取未定义的属性'DATA_URL':68
I keep getting the same kind of error: Uncaught TypeError: Cannot read property 'DATA_URL' of undefined:68
我什至尝试了来自的完整示例代码:
I even tried full example code from :
http://docs.phonegap.com/en/edge/cordova_camera_camera.md.html#Camera
推荐答案
在安装插件后,尝试再次构建应用程序( cordova build
).让我知道是否可以解决问题.
Try building the app (cordova build
) again after installing the plugin. Let me know if that fixes it.
这篇关于cordova提供TypeError:无法读取属性' DATA_URL'的未定义:68的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!