Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monkey选择Fastbot-Android引擎运行报错java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/gson/GsonBuilder; #60

Open
jinghuichou opened this issue Dec 24, 2021 · 0 comments

Comments

@jinghuichou
Copy link

您好,Monkey选择Fastbot-Android引擎运行报错:
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/gson/GsonBuilder; at com.android.commands.monkey.fastbot.client.GsonIface.(SourceFile:28) at com.android.commands.monkey.fastbot.client.Operate.fromJson(SourceFile:54) at com.bytedance.fastbot.AiClient.l(SourceFile:1137) at com.android.commands.monkey.x.z(SourceFile:848) at com.android.commands.monkey.x.k(SourceFile:395) at com.android.commands.monkey.Monkey.f(SourceFile:1510) at com.android.commands.monkey.Monkey.a(SourceFile:867) at com.android.commands.monkey.Monkey.main(SourceFile:458) at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method) at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:371) Caused by: java.lang.ClassNotFoundException: Didn't find class "com.google.gson.GsonBuilder" on path: DexPathList[[zip file "/sdcard/monkeyq.jar", zip file "/sdcard/framework.jar"],nativeLibraryDirectories=[/system/lib64, /product/lib64, /system/lib64, /product/lib64]] at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:134) at java.lang.ClassLoader.loadClass(ClassLoader.java:379) at java.lang.ClassLoader.loadClass(ClassLoader.java:312) ... 10 more

根据Fastbot-Android的Readme常见问题第6条,运行命令classpath 需包含 fastbot-thirdpart.jar,但客户端缺少这个参数但是无法更改最终命令

Appetizer: 1.4.0(最新版本)
fastbot-android v1.1
Macos: 10.14.6

@jinghuichou jinghuichou changed the title Monkey选择Fastbot-Android引擎运行报错 Monkey选择Fastbot-Android引擎运行报错java.lang.NoClassDefFoundError: Failed resolution of: Lcom/google/gson/GsonBuilder; Dec 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant