Comments (7)
I solved this issue.
I followed this
add this line to android/app/build.gralde
defaultConfig
missingDimensionStrategy 'react-native-camera', 'mlkit'
from react-native-qrcode-scanner.
@saifulshihab
Did you use 'react-native-camera' because it is deprecated.
from react-native-qrcode-scanner.
Yes, what's the alternative??
from react-native-qrcode-scanner.
@saifulshihab
I know there is no alternative. I am also trying to use this but i am getting error like this on android
`Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
Could not resolve all task dependencies for configuration ':app:debugCompileClasspath'.
Could not resolve project :react-native-camera.
Required by:
project :app
> The consumer was configured to find an API of a component, preferably optimized for Android, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug', attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.1'. However we cannot choose between the following variants of project :react-native-camera:
- generalDebugApiElements
- mlkitDebugApiElements
All of them match the consumer attributes:
- Variant 'generalDebugApiElements' capability courier:react-native-camera:unspecified declares an API of a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug':
- Unmatched attributes:
- Provides attribute 'com.android.build.api.attributes.ProductFlavor:react-native-camera' with value 'general' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'generalDebug' but the consumer didn't ask for it
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Provides attribute 'react-native-camera' with value 'general' but the consumer didn't ask for it
- Variant 'mlkitDebugApiElements' capability courier:react-native-camera:unspecified declares an API of a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.1', attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug':
- Unmatched attributes:
- Provides attribute 'com.android.build.api.attributes.ProductFlavor:react-native-camera' with value 'mlkit' but the consumer didn't ask for it
- Provides attribute 'com.android.build.gradle.internal.attributes.VariantAttr' with value 'mlkitDebug' but the consumer didn't ask for it
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Provides attribute 'react-native-camera' with value 'mlkit' but the consumer didn't ask for it
The following variants were also considered but didn't match the requested attributes:
- Variant 'generalReleaseApiElements' capability courier:react-native-camera:unspecified declares an API of a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.1':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Variant 'generalReleaseRuntimeElements' capability courier:react-native-camera:unspecified declares a runtime of a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.1':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Variant 'mlkitReleaseApiElements' capability courier:react-native-camera:unspecified declares an API of a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.1':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for Android)
- Variant 'mlkitReleaseRuntimeElements' capability courier:react-native-camera:unspecified declares a runtime of a component, as well as attribute 'com.android.build.api.attributes.AgpVersionAttr' with value '7.3.1':
- Incompatible because this component declares a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'release' and the consumer needed a component, as well as attribute 'com.android.build.api.attributes.BuildTypeAttr' with value 'debug'
- Other compatible attribute:
- Doesn't say anything about its target Java environment (preferred optimized for Android)
`
from react-native-qrcode-scanner.
@musabsengul
I have same issue on Android ...
how to solve this issue?
from react-native-qrcode-scanner.
I've followed these steps:
https://react-native-camera.github.io/react-native-camera/docs/installation#manual-install---android-not-recommended
from react-native-qrcode-scanner.
any updates
any solutions?
from react-native-qrcode-scanner.
Related Issues (20)
- Incompability when using react-native-permissions 2.0.2 (from this package) and in parallel with react-native-permissions 3.6.0 HOT 1
- Check if user has denied or accepted camera permission in real time
- this lib is dead? HOT 1
- Keeps adding extra digit to Start/End of actual barcode if it's less than 13 numbers HOT 2
- Kindly Remove/Archive this package.
- Unable to use QRCodeScanner HOT 9
- Invariant Violation: View config getter callback for component `AndroidProgressBar` must be a function (received `undefined`).
- After react native 0.70 upgrade, It crashes. HOT 3
- can't scan HOT 1
- scan HOT 1
- How to re request permission? HOT 1
- repeat scan HOT 1
- [Release] App Show White Screen HOT 2
- For IOS getting ERROR TypeError: null is not an object (evaluating 'NativeModule.requestPermission' HOT 7
- Keeps repeating scanning same qr code multiple times HOT 3
- sensitive is low for catch barcode HOT 4
- How can I user proguard-rules in it.
- react-native-permissions: NativeModule.RNPermissions is null HOT 6
- what can i do if i'm use only barcode scanner instead of QR code scanner
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 react-native-qrcode-scanner.