bytedance / Fastbot_Android

Fastbot(2.0) is a model-based testing tool for modeling GUI transitions to discover app stability problems
Other
1.06k stars 244 forks source link

编译monkeyq.jar时报错UNEXPECTED TOP-LEVEL ERROR: java.lang.OutOfMemoryError: Java heap space #292

Open zhangaguan opened 3 months ago

zhangaguan commented 3 months ago

没找到monkey/build/libs/monkey.jar文件, 使用/home/android-sdk/build-tools/28.0.3/dx --dex --output=monkeyq.jar monkey/libs/framework.jar 命令编译时, 报错如下:

WARNING in android.view.WindowManager.isKeyguardSmartisan:(Landroid/view/WindowManager$LayoutParams;)Z: defining a static interface method requires --min-sdk-version >= 24 (currently 13) for interface methods: android.view.WindowManager.isKeyguardSmartisan:(Landroid/view/WindowManager$LayoutParams;)Z WARNING in android.view.WindowManagerPolicy.getWindowLayerLw:(Landroid/view/WindowManagerPolicy$WindowState;)I: defining a default interface method requires --min-sdk-version >= 24 (currently 13) for interface methods: android.view.WindowManagerPolicy.getWindowLayerLw:(Landroid/view/WindowManagerPolicy$WindowState;)I WARNING in android.view.WindowManagerPolicy.getWindowLayerFromTypeLw:(I)I: defining a default interface method requires --min-sdk-version >= 24 (currently 13) for interface methods: android.view.WindowManagerPolicy.getWindowLayerFromTypeLw:(I)I WARNING in android.view.WindowManagerPolicy.getWindowLayerFromTypeLw:(IZ)I: defining a default interface method requires --min-sdk-version >= 24 (currently 13) for interface methods: android.view.WindowManagerPolicy.getWindowLayerFromTypeLw:(IZ)I WARNING in android.view.WindowManagerPolicy.getSubWindowLayerFromTypeLw:(I)I: defining a default interface method requires --min-sdk-version >= 24 (currently 13) for interface methods: android.view.WindowManagerPolicy.getSubWindowLayerFromTypeLw:(I)I WARNING in android.view.WindowManagerPolicy.setDismissImeOnBackKeyPressed:(Z)V: defining a default interface method requires --min-sdk-version >= 24 (currently 13) for interface methods: android.view.WindowManagerPolicy.setDismissImeOnBackKeyPressed:(Z)V WARNING in android.view.WindowManagerPolicy$PointerEventListener.onPointerEvent:(Landroid/view/MotionEvent;I)V: defining a default interface method requires --min-sdk-version >= 24 (currently 13) for interface methods: android.view.WindowManagerPolicy$PointerEventListener.onPointerEvent:(Landroid/view/MotionEvent;I)V WARNING in android.view.WindowManagerPolicy$WindowState.canAddInternalSystemWindow:()Z: defining a default interface method requires --min-sdk-version >= 24 (currently 13) for interface methods: android.view.WindowManagerPolicy$WindowState.canAddInternalSystemWindow:()Z

UNEXPECTED TOP-LEVEL ERROR: java.lang.OutOfMemoryError: Java heap space

weibinfang commented 2 months ago

没找到monkey/build/libs/monkey.jar是因为你前置的编译就没成功,你需要看下前面的编译的失败原因