最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

java - Why does Flutter WorkManager show the error: "Could not resolve main entrypoint function" and multiple

programmeradmin3浏览0评论

Problem :
I'm trying to implement background tasks in my Flutter app to add users online database when device is online using WorkManager. However, after initilaizing the WorkManager and running the app, I'm getting this error in the logs:

Software Configuration:
Java : 17.0.11
Flutter : 3.29.0
Android Studio : 2024.2.1 Patch 3

Error Log :

: FlutterJNI.loadLibrary called more than once
I/ResourceExtractor(13363): Found extracted resources res_timestamp-1-1741615888564
W/FlutterJNI(13363): FlutterJNI.prefetchDefaultFontManager called more than once
W/FlutterJNI(13363): FlutterJNI.init called more than once
E/flutter (13363): [ERROR:flutter/runtime/dart_isolate(869)] Could not resolve main entrypoint function.
E/flutter (13363): [ERROR:flutter/runtime/dart_isolate(170)] Could not run the run main Dart entrypoint.
E/flutter (13363): [ERROR:flutter/runtime/runtime_controller(557)] Could not create root isolate.
E/flutter (13363): [ERROR:flutter/shell/common/shell(668)] Could not launch engine with configuration.
I/Choreographer(13363): Skipped 74 frames!  The application may be doing too much work on its main thread.
I/flutter (13363): Initializing WorkManager...
I/flutter (13363): WorkManager initialized successfully.
I/flutter (13363): 

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论