monkeyrunner在Android SDK 4.0中无法运行的解决办法

 
新版的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.jav­a: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

你可能感兴趣的:(thread,android,exception,jar,Google)