Symptoms
When building the project appeared issue-message:
"platforms\android\src\com\abbyy\mobile\rtr\cordova\RtrPlugin.java:566: error: cannot find symbol
result = MultiCaptureResult.getJsonResult( imageCaptureResult, imageCaptureSettings, cordova.getContext() );
^
symbol: method getContext()
location: variable cordova of type CordovaInterface"
Cause
This issue might be caused by the incorrect version of the plugin.
Resolution
Please change the package.json:
"cordova-plugin-ionic": "5.3.0",
- Remove plugin:
cordova plugin rm cordova-plugin-ionic
- Add older version:
cordova plugin rm cordova-plugin-ionic@5.3.0
- The following error might occur:
cordova plugin add cordova-plugin-ionic@5.3.0
Variable(s) missing (use: --variable APP_ID=value --variable CHANNEL_NAME=value). - To fix remove platform android and add again.
cordova platform rm android; cordova platform add android@6.4
After the modifications are done, you can build the project:cordova build android
Comments
0 comments
Please sign in to leave a comment.