# Cordova-plugin-qrscanner

**URL:** <https://forum.ionicframework.com/t/cordova-plugin-qrscanner/196691>\
**Category:** cordova\
**Created:** [September 21, 2020, 8:16pm UTC](https://forum.ionicframework.com/t/cordova-plugin-qrscanner/196691 "2020-09-21T20:16:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sj9](https://avatars.discourse-cdn.com/v4/letter/s/c6cbf5/32.png) [@sj9](https://forum.ionicframework.com/u/sj9)\
**Post date:** [September 21, 2020, 8:16pm UTC](https://forum.ionicframework.com/t/cordova-plugin-qrscanner/196691/1 "2020-09-21T20:16:35Z")

</div>

Hello all

I have a problem whit compiling the project.  
after running these commands → “ionic cordova run android” or “ionic cordova build android” I am getting this error:

> cordova.cmd build android  
> [cordova]  
> [cordova] FAILURE: Build failed with an exception.  
> [cordova]  
> [cordova] \* What went wrong:  
> [cordova] Could not resolve all files for configuration ‘:app:debugCompileClasspath’.  
> [cordova] \> Could not download zxing-android-embedded.aar (com.journeyapps:zxing-android-embedded:3.3.0)  
> [cordova] \> Could not get resource ‘[https://jcenter.bintray.com/com/journeyapps/zxing-android-embedded/3.3.0/zxing-android-embedded-3.3.0.aar](https://jcenter.bintray.com/com/journeyapps/zxing-android-embedded/3.3.0/zxing-android-embedded-3.3.0.aar)’.  
> [cordova] \> Could not GET ‘[https://jcenter.bintray.com/com/journeyapps/zxing-android-embedded/3.3.0/zxing-android-embedded-3.3.0.aar](https://jcenter.bintray.com/com/journeyapps/zxing-android-embedded/3.3.0/zxing-android-embedded-3.3.0.aar)’.  
> [cordova] \> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target  
> [cordova]  
> [cordova] \* Try:  
> [cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.  
> [cordova]  
> [cordova] \* Get more help at [https://help.gradle.org](https://help.gradle.org)  
> [cordova]  
> [cordova] BUILD FAILED in 2s  
> [cordova] C:\Workspace\nSKEP\Dev\WebAccess\Dscp.Mobile\platforms\android\gradlew: Command failed with exit code 1 Error output:  
> [cordova] FAILURE: Build failed with an exception.  
> [cordova]  
> [cordova] \* What went wrong:  
> [cordova] Could not resolve all files for configuration ‘:app:debugCompileClasspath’.  
> [cordova] \> Could not download zxing-android-embedded.aar (com.journeyapps:zxing-android-embedded:3.3.0)  
> [cordova] \> Could not get resource ‘[https://jcenter.bintray.com/com/journeyapps/zxing-android-embedded/3.3.0/zxing-android-embedded-3.3.0.aar](https://jcenter.bintray.com/com/journeyapps/zxing-android-embedded/3.3.0/zxing-android-embedded-3.3.0.aar)’.  
> [cordova] \> Could not GET ‘[https://jcenter.bintray.com/com/journeyapps/zxing-android-embedded/3.3.0/zxing-android-embedded-3.3.0.aar](https://jcenter.bintray.com/com/journeyapps/zxing-android-embedded/3.3.0/zxing-android-embedded-3.3.0.aar)’.  
> [cordova] \> sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target  
> [cordova]  
> [cordova] \* Try:  
> [cordova] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.  
> [cordova]  
> [ERROR] An error occurred while running subprocess cordova.

```
    cordova.cmd build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

```

**I want to mention that before it worked well and I was able to build and run it**

My current versions are :  
ionic -v  
6.9.2  
cordova -v  
9.0.0 (cordova-lib@9.0.1)  
“cordova-plugin-qrscanner”: “^3.0.1”,  
“@ionic-native/qr-scanner”: “^5.28.0”,

 ![plugin1](https://global.discourse-cdn.com/ionicframework/original/3X/5/f/5f1dd09e74164872701ac80e13fc7cb36ace20b2.jpeg) ![plugin2](https://global.discourse-cdn.com/ionicframework/original/3X/0/9/09bd72d0753ae26bfeebc5e112b794897360761b.jpeg) ![versions](https://global.discourse-cdn.com/ionicframework/original/3X/c/b/cbff687e8fc6cfab08888a6101f6ff8f6d6cecc9.jpeg)

---

<div class="post-metadata">

**Author:** ![rapropos](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/rapropos/32/100227_2.png) [@rapropos](https://forum.ionicframework.com/u/rapropos)\
**Post date:** [September 21, 2020, 8:34pm UTC](https://forum.ionicframework.com/t/cordova-plugin-qrscanner/196691/2 "2020-09-21T20:34:25Z")

</div>

If you don’t get any better answers, that’s not the only option for scanning QR codes. Ordinary BarcodeScanner works just fine.
