PhoneGap Build using barcodescanner gets error

  • 2
  • Question
  • Updated 4 years ago
I have this line in my config.xml file to add the barcode scanner:

When I submit to PhoneGap Build, this error appears in the log:

error: package com.google.zxing.client.android does not exist

The iOS version builds fine.

Any ideas?
Photo of gh

gh

  • 34 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 2
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
What plugin?
Photo of gh

gh

  • 34 Posts
  • 0 Reply Likes
Sorry - the question editor swallows less than signs.

<plugin name="phonegap-plugin-barcodescanner" source="npm" />
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
OK.
This plugin was updated 4 days ago. A major update. Errors/bugs are possible.
The plugin requires a recent PGB version. I would suggest you build with PGB cli-6.1.0 first and see if that builds correctly.
If not, it would be a good idea to post an issue at the plugin's Github repo.
https://github.com/phonegap/phonegap-...
Photo of gh

gh

  • 34 Posts
  • 0 Reply Likes
Sure enough, that fixed it. Thank you!

The default version for PGB is still 5.2. When will it change to the current version?
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
:-)
You never know.
cli-6.0.0 was introduced as 'beta', at least for Winphone. I don't know if they also still labeled cli-6.1.0 as 'somewhat experimental'.
Photo of gh

gh

  • 34 Posts
  • 0 Reply Likes
Thank you. I'll be 'cautiously optimistic'. :-)