gpt4 book ai didi

Android Studio 无法截取设备的屏幕截图

转载 作者:行者123 更新时间:2023-11-29 23:22:14 36 4
gpt4 key购买 nike

当我尝试使用 screenshot of physical device from the Debug tab 时,Android Studio 有时会出现以下错误.

这些错误出现在“调试”选项卡的“转储 #1”子选项卡上:

"GAC_Executor[0]@5406" prio=5 tid=0x51eb nid=NA waiting
java.lang.Thread.State: WAITING
blocks GAC_Executor[0]@5406
at java.lang.Object.wait(Object.java:-1)
at java.lang.Thread.parkFor$(Thread.java:2135)
- locked <0x1aa5> (a java.lang.Object)
at sun.misc.Unsafe.park(Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1087)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1147)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at Os.run(SourceFile:5)
at java.lang.Thread.run(Thread.java:764)

另一种错误:

"CrAsyncTask #1@4908" prio=5 tid=0x161 nid=NA waiting
java.lang.Thread.State: WAITING
blocks CrAsyncTask #1@4908
at java.lang.Object.wait(Object.java:-1)
at java.lang.Thread.parkFor$(Thread.java:2135)
- locked <0x180a> (a java.lang.Object)
at sun.misc.Unsafe.park(Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2101)
at java.util.concurrent.ArrayBlockingQueue.poll(ArrayBlockingQueue.java:402)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1086)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1147)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
at java.lang.Thread.run(Thread.java:764)

另一种错误:

"FinalizerDaemon@6149" daemon prio=5 tid=0x158 nid=NA waiting
java.lang.Thread.State: WAITING
blocks FinalizerDaemon@6149
at java.lang.Object.wait(Object.java:-1)
at java.lang.Object.wait(Object.java:422)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:188)
- locked <0x1808> (a java.lang.Object)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:209)
at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:232)
at java.lang.Daemons$Daemon.run(Daemons.java:103)
at java.lang.Thread.run(Thread.java:764)

另一种错误:

"CleanupReference@5418" daemon prio=5 tid=0x16b nid=NA waiting
java.lang.Thread.State: WAITING
blocks CleanupReference@5418
at java.lang.Object.wait(Object.java:-1)
at java.lang.Object.wait(Object.java:422)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:188)
- locked <0x180e> (a java.lang.Object)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:209)
at ayH.run(SourceFile:3)

另一种错误:

"ReferenceQueueDaemon@6148" daemon prio=5 tid=0x157 nid=NA waiting
java.lang.Thread.State: WAITING
blocks ReferenceQueueDaemon@6148
at java.lang.Object.wait(Object.java:-1)
at java.lang.Daemons$ReferenceQueueDaemon.runInternal(Daemons.java:178)
- locked <0xc44> (a java.lang.Class)
at java.lang.Daemons$Daemon.run(Daemons.java:103)
at java.lang.Thread.run(Thread.java:764)

另一种错误:

"FinalizerWatchdogDaemon@6150" daemon prio=5 tid=0x159 nid=NA sleeping
java.lang.Thread.State: TIMED_WAITING
blocks FinalizerWatchdogDaemon@6150
at java.lang.Thread.sleep(Thread.java:-1)
at java.lang.Thread.sleep(Thread.java:373)
- locked <0x1809> (a java.lang.Object)
at java.lang.Thread.sleep(Thread.java:314)
at java.lang.Daemons$FinalizerWatchdogDaemon.sleepFor(Daemons.java:342)
at java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization(Daemons.java:364)
at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:281)
at java.lang.Daemons$Daemon.run(Daemons.java:103)
at java.lang.Thread.run(Thread.java:764)

通常我可以通过重启 Android Studio 来解决这个问题,但今天我的问题变得更加一致了。

我还尝试过重新启动我的 Mac,重新启动 Nexus 5x 物理设备,将设备重新插入不同的端口,然后发出 adb kill-server 命令。这些都没有帮助。

有谁知道导致这个问题的原因以及如何避免它?

最佳答案

这可能来自 Android Studio 3.2。你能把它更新到更新的吗?

我在我的 Mac 上使用 3.2.1(2018 年 10 月 9 日)没有任何问题。

关于Android Studio 无法截取设备的屏幕截图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54118439/

36 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com