Can’t resolve me.dm7.barcodescanner:zxing:1.9.13
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.
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
currently not very actively maintaining this app
Been there, done that :-) quickest wins, in order of quickness, would probably be:
- Grab
me.dm7.barcodescanner:xzing:1.9.8from Google or Maven Central, as indicated above - Find a way to get 1.9.13 back (if there is one – the project is no longer maintained either)
- Given that
me.dm7.barcodescanner:zxingis no longer maintained, include it as a submodule - 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).