Giter Site home page Giter Site logo

W/FlutterEngine( 8943): Tried to automatically register plugins with FlutterEngine (io.flutter.embedding.engine.FlutterEngine@17540cb) but could not find and invoke the GeneratedPluginRegistrant. Error connecting to the service protocol: failed to connect to about tflite_flutter_plugin HOT 8 CLOSED

am15h avatar am15h commented on July 18, 2024
W/FlutterEngine( 8943): Tried to automatically register plugins with FlutterEngine (io.flutter.embedding.engine.FlutterEngine@17540cb) but could not find and invoke the GeneratedPluginRegistrant. Error connecting to the service protocol: failed to connect to

from tflite_flutter_plugin.

Comments (8)

GanZhiXiong avatar GanZhiXiong commented on July 18, 2024

device is Android 6.0

from tflite_flutter_plugin.

am15h avatar am15h commented on July 18, 2024

Hi @GanZhiXiong, can you please confirm if this issue occurs only when using tflite_flutter and not without that. How can I reproduce this issue?

from tflite_flutter_plugin.

GanZhiXiong avatar GanZhiXiong commented on July 18, 2024

I downloaded the zip code, opened it in Android Studio, compiled it to an Android phone, and reported this error

No problem running in iOS

from tflite_flutter_plugin.

GanZhiXiong avatar GanZhiXiong commented on July 18, 2024

I have another question. I'm not sure what your App is used for?
image

from tflite_flutter_plugin.

am15h avatar am15h commented on July 18, 2024

@GanZhiXiong This app uses text classifier model from TF Hub to classify a given text as positive (green) or negative(red).
For ex:. Good->green, Bad->red.
You can find more info here https://www.tensorflow.org/lite/models/text_classification/overview.

from tflite_flutter_plugin.

am15h avatar am15h commented on July 18, 2024

I downloaded the zip code, opened it in Android Studio, compiled it to an Android phone, and reported this error

No problem running in iOS

Thanks for clarifying, I will check it out.

from tflite_flutter_plugin.

am15h avatar am15h commented on July 18, 2024

Hi @GanZhiXiong, I think the problem is specifically with running on Android 6.0. Please try doing this,

  1. Remove this line https://github.com/am15h/tflite_flutter_plugin/blob/master/example/pubspec.yaml#L24 in your local project.
  2. flutter pub get
  3. Comment out this https://github.com/am15h/tflite_flutter_plugin/blob/master/example/test/tflite_flutter_plugin_example_e2e.dart#L12 and https://github.com/am15h/tflite_flutter_plugin/blob/master/example/test/tflite_flutter_plugin_example_e2e.dart#L23 in your local project.
  4. In tflite_flutter_plugin/example execute sh install.sh (If you haven't already as explained in initial setup).
  5. In tflite_flutter_plugin/example execute flutter clean.
  6. Now try running.

from tflite_flutter_plugin.

am15h avatar am15h commented on July 18, 2024

Closing this issue. Feel free to reopen if error still persists.

from tflite_flutter_plugin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.