ios - sudo cordova build android error related to plugin -
when running command sudo cordova build android, following error thrown:
symbol: variable permissionhelper location: class cameralauncher /users/rd/desktop/kda1/mobile/platforms/android/src/org/apache/cordova/camera/cameralauncher.java:281: error: cannot find symbol permissionhelper.requestpermissions(this, take_pic_sec, permissions); ^ symbol: variable permissionhelper location: class cameralauncher 10 errors failure: build failed exception. * went wrong: execution failed task ':compiledebugjavawithjavac'. this project used have plugin org.apache.cordova.camera due ios incompatibility issues following 2 commands run:
cordova plugin remove org.apache.cordova.camera cordova plugin add org.apache.cordova.camera@latest the ios part started work ok, after android build started fail. have tried:
sudo cordova plugin remove cordova-plugin-camera but returns error message:
error: cannot find plugin.xml plugin "org.apache.cordova.camera". please try adding again. it somehow mixes 2 plugin names cordova-plugin-camera , org.apache.cordova.camera latter being folder old project had before removing , adding plugin again due ios incompatibility issues.
Comments
Post a Comment