Closed caktoy closed 5 years ago
You only import OCR part of the code, this error seems to be lost object method!To import a local plug-in is to import it all in, which is my suggestion
I use plug-ins in this way: first, download the plug-ins to the local place; second, modify the plug-ins locally with AS; third, create plugins under the project and copy the plug-ins here; fourth, modify pubspec. yaml to use the local plug-ins; fifth, click Packages upgrade. I use this way, no problem, I don't know if I can help you.
Do you mean I need to import all activity to AndroidManifest? does that happen because the build configuration for Android has a problem?
I personally suggest that it is best not to delete the original plug-in, only to make their own changes.If you remove,Make sure that the removed plug-in can run independently in AS without any error,Copy it into your own project
i got the same error and it has to do with AndroidX libraries. There is a pull request which fixes the issue but i guess it is not merge yet.
I have the same errors. I only ran 'package get' command. And then get same errors like this. C:\flutter.pub-cache\hosted\pub.dartlang.org\flutter_mobile_vision-0.1.3\android\src\main\java\io\github\edufolly\fluttermobilevision\util\AbstractCaptureActivity.java:9: error: cannot find symbol import android.support.v4.app.ActivityCompat; ^ symbol: class ActivityCompat location: package android.support.v4.app C:\flutter.pub-cache\hosted\pub.dartlang.org\flutter_mobile_vision-0.1.3\android\src\main\java\io\github\edufolly\fluttermobilevision\barcode\BarcodeUpdateListener.java:3: error: package android.support.annotation does not exist import android.support.annotation.UiThread; ^ C:\flutter.pub-cache\hosted\pub.dartlang.org\flutter_mobile_vision-0.1.3\android\src\main\java\io\github\edufolly\fluttermobilevision\ui\CameraSource.java:28: error: package android.support.annotation does not exist import android.support.annotation.Nullable;
I've just published a new demo app. Check it out... Flutter Mobile Vision Start
Remember to run flutter upgrade
I just add this plugin into my flutter project, I need the OCR plugin, I followed instruction like in Usage section, but I got this error when I start run my project.
Is there something I've wrong or something I need to do to run with this plugins properly?