bytedance/Fastbot_Android

测试程序异常退出 java.lang.NoSuchMethodError: No interface method freezeRotation(I)V in class Landroid/view/IWindowManager; or its super classes (declaration of 'android.view.IWindowManager' appears in /system/framework/framework.jar!classes4.dex)

Opened this issue · 4 comments

[Fastbot][2024-10-22 19:40:27.383] fastbot native : library load!
[Fastbot][2024-10-22 19:40:27.384] fastbot native path is : /data/local/tmp/arm64-v8a/libfastbot_native.so
[Fastbot][2024-10-22 19:40:27.390]

[Fastbot]*** ERROR *** findMethod() error, NoSuchMethodException happened, there is no such method: getTasks
[Fastbot][2024-10-22 19:40:27.395] // current activity is com.android.camera.Camera
[Fastbot][2024-10-22 19:40:27.413] // Event id: 1
[Fastbot][2024-10-22 19:40:27.439] action type: SCROLL_LEFT_RIGHT
[Fastbot][2024-10-22 19:40:27.439] rpc cost time: 11
[Fastbot][2024-10-22 19:40:27.444] event time:48
[Fastbot][2024-10-22 19:40:27.444] :Sending rotation degree=0, persist=false
[Fastbot][2024-10-22 19:40:27.445] // Monkey is over!
[Fastbot][2024-10-22 19:40:27.445] :Sending rotation degree=0, persist=false
[Fastbot][2024-10-22 19:40:27.445] Internal error
java.lang.NoSuchMethodError: No interface method freezeRotation(I)V in class Landroid/view/IWindowManager; or its super classes (declaration of 'android.view.IWindowManager' appears in /system/framework/framework.jar!classes4.dex)
at com.android.commands.monkey.events.base.MonkeyRotationEvent.injectEvent(MonkeyRotationEvent.java:55)
at com.android.commands.monkey.Monkey.run(Monkey.java:834)
at com.android.commands.monkey.Monkey.main(Monkey.java:458)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:382)
[Fastbot][2024-10-22 19:40:27.446] Please report this bug issue to github

java.lang.NoSuchMethodError: No interface method freezeRotation(I)V in class Landroid/view/IWindowManager; or its super classes (declaration of 'android.view.IWindowManager' appears in /system/framework/framework.jar!classes4.dex)
我也出现这个问题。

我也出现该问题,是系统兼容原因吗?

java.lang.NoSuchMethodError: No interface method freezeRotation(I)V in class Landroid/view/IWindowManager; or its super classes (declaration of 'android.view.IWindowManager' appears in /system/framework/framework.jar!classes4.dex) 我也出现这个问题。
--------------------------》
咨询下,还有类似的遍历APP功能的开源软件推荐吗?

我也出现了这个问题