0

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

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

日食给我这个错误:

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

如何解决这个问题?

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


编辑:我已经评论了代码的错误行,它现在正在工作......有人知道为什么会这样吗?

4

1 回答 1

0

这解决了我的问题:

删除所有已安装的插件并通过plugmancordova plugin add <plugin name>再次安装它们,然后通过plugman --platform <platform name> --project <path to project specified platform> --plugin <plugin name>plugman安装BarcodeScanner插件作为魅力......

于 2013-11-07T10:56:20.927 回答