Comments (5)
Try add this line to your app AndroidManifest.xml inside <activity>...</activity>
from smartscanner-capacitor.
Hi @megaxayda, android:exported="true"
is already added by default in capacitor-V4.
I noticed that there is some changes on the .aar
files in the feature/capacitor-v4
branch, so I removed my .aar
files that came from feature/capacitor-v3
then replaced it with the files from feature/capacitor-v4. The android:exported
error was gone and the application was able to build. When executing the executeScanner
method from the plugin, the app crashes. There were no error logs in the capacitor level, but upon debugging using Android studio I found this:
Are you guys using different .aar
files?
from smartscanner-capacitor.
Hi @megaxayda,
android:exported="true"
is already added by default in capacitor-V4.I noticed that there is some changes on the
.aar
files in thefeature/capacitor-v4
branch, so I removed my.aar
files that came fromfeature/capacitor-v3
then replaced it with the files from feature/capacitor-v4. Theandroid:exported
error was gone and the application was able to build. When executing theexecuteScanner
method from the plugin, the app crashes. There were no error logs in the capacitor level, but upon debugging using Android studio I found this:Are you guys using different
.aar
files?
Woah this is similar to what happened to me,
But for me to fix this is to add this in the build.gradle
implementation('com.journeyapps:zxing-android-embedded:4.3.0') { transitive = false }
implementation 'com.google.zxing:core:3.3.0'
which is really weird fix.
from smartscanner-capacitor.
hello @rs2-davebanguilan Thank you for creating this ticket, can you try it in 0.5.0-beta.9 this issue should be fix without importing the dependencies yourself.
from smartscanner-capacitor.
Hi @nicholemnl. I can confirm that your solution works. I tested it on Android for both mrz
and nfc-scan
modes. Thank you
from smartscanner-capacitor.
Related Issues (15)
- Support for Capacitor v3 and up HOT 3
- Also Extract Passport Face Image and Signature in NFC Scanning HOT 2
- Scanning multiple times with Capacitor breaks the plugin
- The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher. HOT 3
- Documentation
- build.gradle fails to resolve :libsmartscanner-debug and :libsmartscanner-mrz-parser HOT 5
- Attempting to scan NFC or barcode causes Android app to crash HOT 8
- Are passport images/nfc data being stored? HOT 1
- PDF417 crash in capacitor app
- Android build not working HOT 1
- iOS: Missing function implementation
- Publish package to NPM
- Fix parsing of nameOfHolder for NFC scan HOT 1
- bundleDebugAar build error HOT 1
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 smartscanner-capacitor.