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

Problem : I'm trying to implement background tasks in my Flutter app to add users online database

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): 

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744841170a4596563.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信