Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build issue - cannot find symbol import org.apache.cordova.PermissionHelper; #180

Open
jeevan-raj opened this issue Jun 29, 2018 · 7 comments

Comments

@jeevan-raj
Copy link

Hi,

I'm getting the following error while trying to build the project.

:compileDebugJavaWithJavacD:\dupont\laserfarm\aemm\plugins\platforms\android\src\com\bitpay\cordova\qrscanner\QRScanner.java:21: error: cannot find symbol
import org.apache.cordova.PermissionHelper;
^
symbol: class PermissionHelper
location: package org.apache.cordova
1 error
![error]

(https://user-images.githubusercontent.com/40687115/42080286-c9c099fe-7b9f-11e8-9094-c72418d11b94.PNG)

Kindly help in resolving this issue.

@alsco77
Copy link

alsco77 commented Jul 1, 2018

I reverted back to 2.4.0 and it fixed this issue. I think the problem is with the removal of cordova-plugin-compat in #139 here

I suspect that adding this line back in will let you run the build - going to test it out.. will report back :)

Edit: Just realised that its not possible for me to test that without a lot of work as ionic automatically pulls and compiles the plugin when I add it. @vially would you be able to verify if this is the problem? I'd like to use 2.6.0 if possible

@vially
Copy link
Contributor

vially commented Jul 1, 2018

I may need some more info before I can have an opinion but it looks like you're using a version of cordova-android older than 6.3.0. If that's the case you should be able to fix it by adding cordova-plugin-compat to your config.xml (or bumping cordova-android if that's an option) and then you should be able to use qrscanner version 2.6.0. I'm not able to test it right now though, so I may be wrong.

@alsco77
Copy link

alsco77 commented Jul 1, 2018

Thanks @vially you were correct, good one. Cool!

@allannaranjo
Copy link

Hi, I'm using Cordova 7.0.1, and getting the same "import org.apache.cordova.PermissionHelper" error, I would like to use the version 2.6.0 of this plugin, is there any instructions I can follow to install and overcome this issue?
Thanks

@basurahan
Copy link

Im getting the same issue did anyone solve this problem? Pls i need Help asap

@allannaranjo
Copy link

Im getting the same issue did anyone solve this problem? Pls i need Help asap

I had to use an older version for this.

@jeevan-raj
Copy link
Author

jeevan-raj commented Nov 15, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants