插入相机插件后Eclipse显示错误

时间:2013-10-17 15:24:05

标签: android cordova phonegap-plugins

通过PhoneGap命令行界面插入Camera插件后:

phonegap local plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-camera.git

eclipse给我这个错误:

Description Resource Path Location Type
TAG_ISO cannot be resolved or is not a field    ExifHelper.java /PRName/src/org/apache/cordova/camera   line 148    Java Problem
TAG_EXPOSURE_TIME cannot be resolved or is not a field  ExifHelper.java /PRName/src/org/apache/cordova/camera   line 112    Java Problem
TAG_APERTURE cannot be resolved or is not a field   ExifHelper.java /PRName/src/org/apache/cordova/camera   line 106    Java Problem
TAG_ISO cannot be resolved or is not a field    ExifHelper.java /PRName/src/org/apache/cordova/camera   line 87 Java Problem
TAG_EXPOSURE_TIME cannot be resolved or is not a field  ExifHelper.java /PRName/src/org/apache/cordova/camera   line 75 Java Problem
TAG_APERTURE cannot be resolved or is not a field   ExifHelper.java /PRName/src/org/apache/cordova/camera   line 73 Java Problem

如何解决这个问题?

清洁和建筑项目不起作用...... 还尝试了再次删除和添加插件,也没有工作......


编辑: 我已经评论了错误的代码行,它现在正在运作......任何人都有任何线索为什么这会很开心呢?

1 个答案:

答案 0 :(得分:0)

这解决了我的问题:

删除所有安装的插件,如cordova plugin add <plugin name>,然后通过plugman plugman --platform <platform name> --project <path to project specified platform> --plugin <plugin name>重新安装,然后通过插件安装BarcodeScanner插件作为魅力......