Comments (4)
you can use this one until the fix is merged
flutter_barcode_scanner: git: url: https://github.com/itsAyyazdev/flutter_barcode_scanner.git
from flutter_barcode_scanner.
I just verified that this error is because in the MainActivity.tk file the class has FlutterFragmentActivity and when it is changed to FlutterActivity it works, however this is a big problem as the other packages like localAuth have been updated and use FlutterFrameActivity, it would be very helpful if you could update the sibling package
This found:
import io.flutter.embedding.android.FlutterActivity
class MainActivity: FlutterActivity() {
}
but this not:
import io.flutter.embedding.android.FlutterFragmentActivity
class MainActivity: FlutterFragmentActivity() {
}
from flutter_barcode_scanner.
to solve this since I use localAuth and flutterbarcodescanner what I did was that in the file FlutterBarcodeScannerPlugin.java Cambié todas las referencias a flutterActivity a flutterFrameActivity y ahora funciona, sin embargo, cuando presiono cancelar o escaneo un código qr, la consola sigue mostrando constantemente el siguiente mensaje: Camera 1 looking CAMERA_FACING_FRONT state now CAMERA_STATE_CLOSED for client com.samsung.adaptivebrightnessgo API Level 2.
I hope that with all this that I am saying I can contribute so that you can improve the package that is really very useful
from flutter_barcode_scanner.
When I try to use the plugin on ios it works however on android I get:
E/flutter (19227): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: MissingPluginException(No implementation found for method scanBarcode on channel flutter_barcode_scanner).
I am using the latest version of flutter and dart to date I don't know if this has something to do with it, and I'm starting the application on a physical device with android version 11
Samsung galaxy a30s
To Reproduce
- install the package
- in your method: String barcodeScanRes;
try {
barcodeScanRes = await FlutterBarcodeScanner.scanBarcode(
'#33E9FF', 'Cancel', true, ScanMode.QR);
VibratorPlugin.checkVibration();
print(barcodeScanRes);
} on PlatformException {
barcodeScanRes = 'Failed to get platform version.';
}- execute the method.
did you specify the android minSdkVersion and targetSdkVersion also compileSdkVersion?
from flutter_barcode_scanner.
Related Issues (20)
- Throws exception HOT 2
- Getting issue in ios. HOT 3
- Wrong output on scanning a barcode of format : GS1-128 (UCC/EAN-128) HOT 1
- No Pubspec
- Incorrect code return HOT 3
- won't run without google play services which are not supported by your device HOT 6
- Warning for AVCaptureSession startRunning on Main Thread HOT 1
- Project abandoned? New mantainer? Fork? HOT 1
- Looking forward to updates and maintenance, this library is great!
- Not working anymore. TF Lite in Google Play services has stable ABI version 1.11.0 which is less than the required version 1.13.0
- Module "flutter_barcode_scanner" not found
- Example project fails to build with Unsupported class file major version 61 error
- cannot close the BarcodeStreamReceiver after got a happy result
- In android Using still using FlutterActivity instead of FlutterFragmentActivity in MainActivity.kt: HOT 1
- Switch camera toggle causes crash on single camera Android device
- I want scanner camera size to reduce
- Arm64 architecture application closing
- Namespace not specified using gradle 8.4.0 HOT 4
- Fatal Exception: java.lang.NullPointerException: Attempt to invoke virtual method 'int com.amolg.flutterbarcodescanner.camera.CameraSource.getCameraFacing()' on a null object reference
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 flutter_barcode_scanner.