通过 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
如何解决这个问题?
清理和构建项目不起作用......还尝试再次删除和添加插件,也没有工作......
编辑:我已经评论了代码的错误行,它现在正在工作......有人知道为什么会这样吗?