monkeyrunner在Android(安卓)SDK 4.0中无法运行的解决办法
16lz
2021-01-26
新版的SDK中monkeyrunner 运行时会报错如下,原因是新版的SDK忘记打包了一个jar文件, 请从chimpchat.jar from aster project (http://code.google.com/p/aster/downloads/detail?name=aster-20110824.tar.gz&can=2&q=) 下载aster-20110824.tar.gz,从中解压出chimpchat.jar ,把jar 文件拷贝到$ANDROID_SDK_HOME/tools/lib 中就可以运行即可,但是这个文件并不是完全能够匹配SDK4.0 中monkeyrunner的所有功能。所以还是请大家等待google的源码开放是再看看。 Exception in thread "main" java.lang.NoClassDefFoundError:
com/android/chimpchat/ChimpChat
at
com.android.monkeyrunner.MonkeyRunnerStarter.<init>(MonkeyRunnerStarter.java:60)
at
com.android.monkeyrunner.MonkeyRunnerStarter.main(MonkeyRunnerStarter.java:188)
Caused by: java.lang.ClassNotFoundException: com.android.chimpchat.ChimpChat
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 2 more
com/android/chimpchat/ChimpChat
at
com.android.monkeyrunner.MonkeyRunnerStarter.<init>(MonkeyRunnerStarter.java:60)
at
com.android.monkeyrunner.MonkeyRunnerStarter.main(MonkeyRunnerStarter.java:188)
Caused by: java.lang.ClassNotFoundException: com.android.chimpchat.ChimpChat
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at sun.misc.Launcher$ExtClassLoader.findClass(Launcher.java:229)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
... 2 more
更多相关文章
- Ionic 程序打包发布Android版本
- file(内部存储与外部存储)
- android 环境配置和安装, Android系统包说明,基本控件,常用代码,
- PhoneGap开发Android
- Android(安卓)studio登录界面
- Android(安卓)Preferences的使用
- 【Android】JNICALL could not be resolved
- android的应用包名与代码包名
- odex 转 dex