Skip to content

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

@mvglasow

Description

@mvglasow

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions