android-barcode-keyboard icon indicating copy to clipboard operation
android-barcode-keyboard copied to clipboard

Can’t resolve me.dm7.barcodescanner:zxing:1.9.13

Open mvglasow opened this issue 1 year ago • 2 comments

I just tried to build the app, but it failed with:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:debugCompileClasspath'.
   > Could not find me.dm7.barcodescanner:zxing:1.9.13.
     Required by:
         project :app

Doing some research, I was able to resolve it by editing app/build.gradle. Apparently JCenter is deprecated and in read-only mode, so I changed the repositories stanza to:

repositories {
    google()
    mavenCentral() 
}

The latest version on Maven Central seems to be 1.9.8 (source), so update the version for the dependency.

With these changes I got the app to build and a quick test was successful.

I didn’t do a lot of research, maybe someone comes up with a way to get the latest version of the dependency. If not, then I would suggest the above as a fix.

mvglasow avatar Feb 09 '25 18:02 mvglasow

Hm yeah, that's due to the death of jCenter probably. Ideally, we'd swap out the unmaintained dependency alltogether, but I'm currently not very actively maintaining this app

raphaelm avatar Feb 10 '25 11:02 raphaelm

currently not very actively maintaining this app

Been there, done that :-) quickest wins, in order of quickness, would probably be:

  1. Grab me.dm7.barcodescanner:xzing:1.9.8 from Google or Maven Central, as indicated above
  2. Find a way to get 1.9.13 back (if there is one – the project is no longer maintained either)
  3. Given that me.dm7.barcodescanner:zxing is no longer maintained, include it as a submodule
  4. No longer a quick win: rewrite the app to use a still-maintained alternative to me.dm7.barcodescanner:zxing, the project page mentions some

Too bad the app is no longer maintained, as there don’t seem to be any replacements (at least, no FOSS ones).

mvglasow avatar Feb 10 '25 18:02 mvglasow