我正在Flutter应用程序中部署我的ml模型,但每当在pub get中放置google_mlkit_image_labeling依赖并运行我的代码时,它都会显示此错误:√构建build\app\outputts\flutter-apk\app-debug。Apk. E/FlutterLoader(19847):Flutter初始化失败。E/FlutterLoader(19847):java.util.concurrent.ExecutionException:java.lang.UnsatisfiedLinkError:dalvik.system.PathClassLoader[DexPathList[zip file“/data/app/com.example.thegrowzone-1/base.apk”],nativeLibraryDirectories=[/data/app/com.例如:thegrowzone-1/lib/arm,/data/app/com。example.thegrowzone-1/base.apk!/lib/armeabi-v7a,/system/lib,/vendor/lib]]] couldn't find“ www.example.com The Dog of the Dog(19847)atwww.example. www.example.com (FutureTask.java:94)E/FlutterLoader(19847):在java.util.concurrent.FutureTask.get(FutureTask.java:164)E/FlutterLoader(19847):在io.flutter.embedding.engine.loader.FlutterLoader.ensureInitializationComplete(FlutterLoader.java:239)E/FlutterLoader(19847):在io.flutter.embedding.engine.FlutterEngine。(FlutterEngine。java:327)E/FlutterLoader:在io.flutter.embedding.engine.FlutterEngine。(FlutterEngine.java:207)E/FlutterLoader:在io.flutter.embedding.android.FlutterActivityandFragmentDelegate。设置FlutterEngine(FlutterActivityAndFragmentDelegate。Java:272)E/FlutterLoader:在io.flutter.embedding.android.FlutterActivityAndFragmentDelegate。onAttach(FlutterActivityAndFragmentDelegate。java:181)E/FlutterLoader(19847):在io.flutter.embedding.android.FlutterActivity。onCreate(FlutterActivity.java:495)E/FlutterLoader(19847):在Androidapp.Activity.performCreate(活动。java:6760)E/FlutterLoader(19847):在Androidapp.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)E/FlutterLoader(19847):在Androidapp.ActivityThread.performLaunchActivity(ActivityThread.java:2619)E/FlutterLoader(19847):在Androidapp.ActivityThread.handleLaunchActivity(ActivityThread.java:2727)E/FlutterLoader(19847):在Androidapp.ActivityThread.-wrap12( www.example.com )E/FlutterLoader(19847):在Androidapp.ActivityThread$H。handleMessage(ActivityThread.java:1478)E/FlutterLoader(19847):在Androidos.Handler.dispatchMessage(Handler.java:102)E/FlutterLoader(19847):在Androidos.Looper.loop(Looper.(19847)E/FlutterLoader:在Androidapp.ActivityThread.main(ActivityThread.java:6121)
如何显示我解决这个问题,我也尝试了tflite包,它没有工作。如果有人知道在Flutter中部署ML模型任何其他方法,请告知
1条答案
按热度按时间8ljdwjyq1#
你好像错过了
libflutter.so
。你能检查一下你的配置是否设置正确吗?