安卓:NoClassDefFound [英] Android: NoClassDefFound

查看:319
本文介绍了安卓:NoClassDefFound的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个的使用Subversion的Andr​​oid项目。我用Subclipse的该项目导入到Eclipse中我Wordspace。

I have an Android project that's using SubVersion. I've used Subclipse to import the project into my Eclipse Wordspace.

现在我有得到一个问题:

Now I have a problem with getting a:

 java.lang.NoClassDefFoundError

我试图导入位于同一个包,它不是一个活动,所以我没有把它添加到清单文件(尽管我并没有影响试试)。类

The class I'm trying to import is located in the same package, and it's not an activity, so I have not added it to the manifest file (though I did try with no effect).

它看起来像类路径等问题,但我不太清楚如何去解决这个?

It looks like an issue with classpath etc, but I'm not quite sure how to go about fixing this?

任何帮助很多AP preciated,谢谢!

Any help is much appreciated, thanks!

推荐答案

尝试创建一个新的Andr​​oid项目,复制所有文件那里。然后,请确保您的类路径是正确的。
最后,项目>清除。请确保你没有导入任何R上。

Try to create a new android project, copy all your files there. Then make sure your class path are correct. Lastly, Project>Clean. Make sure you didn't import any R.

编辑:
如果不工作,你可能要仔细检查你的字段,静态块。

If that doesn't work, you may want to double check you fields, static blocks.

java.lang.NoClassDefFoundError

如果你的类时不能初始化将被抛出。

Will be thrown if your class failed at initialize.

这篇关于安卓:NoClassDefFound的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆