找不到类的机器人异常 [英] Class not found exception on android
问题描述
我从网上的一些索里。并导入我的工作区。当我运行模拟器,它抛出,
I get some soure from net. and import on my workspace. When i run on emulator, its throws,
"05-28 17:30:47.895: E/AndroidRuntime(840): java.lang.RuntimeException: Unable to instantiate activity
ComponentInfo{com.developmentmill.laserlogic/com.developmentmill.laserlogic.StageActivity}:
java.lang.ClassNotFoundException: com.developmentmill.laserlogic.StageActivity in
loader dalvik.system.PathClassLoader[/data/app/com.developmentmill.laserlogic-2.apk]"
但是,当我运行在我朋友的机器,它的运行同样的code没有任何错误。
But when i run the same code on my friend machine, its running without any error.
我的Eclipse ADT版本是17.0我的朋友蚀ADT版本16.0
My eclipse ADT Version is 17.0 my friend eclipse ADT version is 16.0
我复制从lib文件夹的JAR文件LIBS foder。和LIB改变Java构建路径libs文件夹。而且我清理项目。
I copy the jar files from lib folder to libs foder. and change the java build path from lib to libs folder. and also i cleaned the project.
此外,我运行该项目,相同的错误已经扔了。
Again, i run the project, the same error has been throw.
这是什么问题,如何解决呢? Ÿ它的出现只是我的机器上。请帮帮我吧。
What is the problem and how to correct it? y its occur on my machine only. Pls help me.
推荐答案
我也遇到了这个问题。
这样试试这个。
右键单击项目 - >转到属性 - > Java的打造专业化路径 - >库 - >从这里移除所有外部JAR - > preSS确定
也删除所有罐子库文件夹
清洁工程 - >重启Eclipse
再然后把所有需要的jar 库文件夹。
Then again put all required jars in libs folder.
我已经用这个解决了我的问题。
I have solved my problem by this
希望这将帮助你....
hope this will help you....
这篇关于找不到类的机器人异常的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!