Git Product home page Git Product logo

Comments (9)

yuriy-budiyev avatar yuriy-budiyev commented on June 7, 2024

Let me see the complete list of your dependecies.
And when this error occurs?

from code-scanner.

shan1322 avatar shan1322 commented on June 7, 2024

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.google.firebase:firebase-auth:15.0.0'
implementation 'com.google.firebase:firebase-core:15.0.0'
implementation 'com.google.firebase:firebase-database:15.0.0'
testImplementation 'junit:junit:4.12'
implementation 'com.firebase:firebase-client-android:2.5.2+'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'com.google.android.gms:play-services-auth:15.0.0'
implementation 'com.android.support:cardview-v7:26.1.0'
implementation 'com.google.zxing:core:3.2.1'
implementation 'com.journeyapps:zxing-android-embedded:3.6.0@aar'
implementation 'com.budiyev.android:code-scanner:1.8.8'

from code-scanner.

yuriy-budiyev avatar yuriy-budiyev commented on June 7, 2024

Probably, you shoud remove these two:
implementation 'com.google.zxing:core:3.2.1'
implementation 'com.journeyapps:zxing-android-embedded:3.6.0@aar'

from code-scanner.

shan1322 avatar shan1322 commented on June 7, 2024

from code-scanner.

yuriy-budiyev avatar yuriy-budiyev commented on June 7, 2024

implementation 'com.google.zxing:core:3.2.1'
implementation 'com.journeyapps:zxing-android-embedded:3.6.0@aar'

Try to remove these two, then clean project and rebuild. Code Scanner uses the latest version of ZXing:
'com.google.zxing:core:3.3.2'
'com.google.zxing:android-core:3.3.0'

These conflicts are, probably, the reason of build failures.

If clean -> rebuild doesn't help, try clean -> invalidate caches / restart -> rebuild

And the last try can be: commit with new dependencies, remove all files from your project directory (except .git), then type in console git reset --hard, open Android Studio, remove your project from list, and open it again by "open an existing android studio project" button.

from code-scanner.

yuriy-budiyev avatar yuriy-budiyev commented on June 7, 2024

Class com.google.zxing.client.android.camera.CameraConfigurationUtils is present in 'com.google.zxing:android-core:3.3.0' dependency of Code Scanner.

from code-scanner.

nicholashartono avatar nicholashartono commented on June 7, 2024

Im using com.journeyapps.barcodescanner.BarcodeEncoder , but when I remove implementation 'com.journeyapps:zxing-android-embedded:3.6.0@aar' and use yours, I cant access the BarcodeEncoder? Any tips about this?

from code-scanner.

shan1322 avatar shan1322 commented on June 7, 2024

from code-scanner.

yuriy-budiyev avatar yuriy-budiyev commented on June 7, 2024

CamearaConfigurationUtils copy-pasted in zxing-android-embedded library (not added as transitive dependency), this causes build failures. I recommend to create issue in zxing-android-embedded repository and ask developer to chenge this (and link this issue).

For now, we can exclude the dependency with conflicting class from code-scanner:

implementation ('com.budiyev.android:code-scanner:1.8.9') {
exclude group: 'com.google.zxing', module: 'android-core'
}

But I can't guarantee stable work, because of probable changes in copy-pasted class and different version of android-core from which this class was copied.

from code-scanner.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.