Comments (9)
Let me see the complete list of your dependecies.
And when this error occurs?
from code-scanner.
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.
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.
from code-scanner.
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.
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.
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.
from code-scanner.
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)
- Does the codescanner have a function to take in uri?
- Orientation change issue
- Crash on google play pre-launch & also on production on clients devices
- How to enable and disable flash light with flash icon? HOT 7
- Android 33 Library does not work
- Library is not working HOT 2
- Flash blink while set ScanMode.SINGLE
- Is there any way to speed up?
- How can we add text below frame ? HOT 1
- NFC Functionality Stops Working When QR Code Scanning Preview is Started on Android 13 HOT 1
- Blank screen on xiaomi redmi A2 HOT 5
- Flash not working in Android 11 HOT 3
- QR scan starts lagging HOT 1
- Scan returns wrong data HOT 1
- Lagging when navigate to fragment with CodeScanner
- Camera is dark due to FPSrate
- flash light is not working in some devices HOT 1
- Library not working
- Library not working with most QR codes
- Fatal Exception: java.lang.ArrayIndexOutOfBoundsException: length=11664; index=11664
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from code-scanner.