质量标准(新)
Flutter version 3.13.2
JDK version 17.0.6+0
Dart version 3.1.0
质量标准(旧)
Flutter version (but I think it is on 3.3.3)
JDK version (unknown)
Dart version (I think it is on dart 2)
这个项目我从我的合作伙伴,他们需要做一些维护,从旧版本到新版本,并添加一些Map页面,但发生了一些事情,而我运行的应用程序,我得到它的延迟和终端说“挂起状态”或类似的东西,老实说,有很多警告,我不知道我能做什么,哪里有问题。
这些是终端对话框的摘要
W/MIUIScout App(31798): Enter APP_SCOUT_WARNING State
W/MIUIScout App(31798): Event:APP_SCOUT_WARNING Thread:main backtrace:
W/MIUIScout App(31798): at jdk.internal.misc.Unsafe.park(Native Method)
W/MIUIScout App(31798): at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252)
W/MIUIScout App(31798): at
com.wongpiwat.trust_location.LocationAssistant.checkInitialLocation(LocationAssistant.java:494)
com.google.android.gms.common.api.internal.BasePendingResult$CallbackHandler.handleMessage(com.google.android.gms:play-services-base@@18.1.0:6)
I/e.mobilebenerit(31798): Wrote stack traces to tombstoned
W/MIUIScout App(31798): Enter APP_SCOUT_HANG state
W/MIUIScout App(31798): (Current message: duration=5003ms seq=31 late=4ms h=com.google.android.gms.common.api.internal.BasePendingResult$CallbackHandler w=1)
D/AppScoutStateMachine(31798): dump trace dirName = com.example.mobilebenerit-31798-APP_SCOUT_HANG-2023-10-13-10-34-24
W/MIUIScout App(31798): Event:APP_SCOUT_HANG Thread:main backtrace:
W/MIUIScout App(31798): at jdk.internal.misc.Unsafe.park(Native Method)
W/MIUIScout App(31798): at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:252)
W/MIUIScout App(31798): at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:717)
W/MIUIScout App(31798): at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1074)W/MIUIScout App(31798): at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:276)
W/MIUIScout App(31798): at com.wongpiwat.trust_location.LocationAssistant$8.onResult(LocationAssistant.java:722)
W/MIUIScout App(31798): at com.google.android.gms.common.api.internal.BasePendingResult$CallbackHandler.handleMessage(com.google.android.gms:play-services-base@@18.1.0:6)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:559)
W/MIUIScout App(31798): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:954)
I/e.mobilebenerit(31798): Thread[5,tid=31817,WaitingInMainSignalCatcherLoop,Thread*=0xb400007ab1d6d000,peer=0x134c4600,"Signal Catcher"]: reacting to signal 3
I/e.mobilebenerit(31798):
I/e.mobilebenerit(31798): Wrote stack traces to tombstoned
W/Looper (31798): PerfMonitor longMsg : seq=31 plan=10:34:19.957 late=4ms wall=30006ms running=5ms runnable=1ms h=com.google.android.gms.common.api.internal.BasePendingResult$CallbackHandler w=1 procState=-1
I/Choreographer(31798): Skipped 1815 frames! The application may be doing too much work on its main thread.
W/Looper (31798): PerfMonitor doFrame : time=0ms vsyncFrame=0 latency=29994ms procState=-1 historyMsgCount=1 (msgIndex=1 wall=30006ms seq=31 running=5ms runnable=1ms late=4ms h=com.google.android.gms.common.api.internal.BasePendingResult$CallbackHandler w=1)
我试着从错误或警告信息中修复Flutter中的一些问题,并从pubspec.yaml中升级bug和错误,并将dep升级到新版本,除了http和one_signal以及与之相关的东西(http:0.13.6,onesignal_flutter:^3.2.8)
有什么我需要升级的吗?
1条答案
按热度按时间cx6n0qe31#
问题在于使用了其中一个方法或可能是' trust_location '包中的变量,请再次尝试检查。如果该软件包确实有问题,请考虑用类似的软件包替换它。