Android开发错误——Could not find class
2013-05-20 10:50
239 查看
错误信息:
Could not find class ** referenced from method **
05-21 22:51:22.548: E/dalvikvm(226): Could not find class 'org.ksoap2.serialization.SoapObject', referenced from method cn.hi.bar.api.LocalAccessor.updateContactToWebService
错误原因及解决办法:
1.所建工程中没有导入jar包,如果是把别人的工程import到自己的eclipse中,需要右击工程Bulid Path->Add Libraries->User Library->User Libraries->new(起一个名字随便A)->Add Jars(将需要的jar包添加到A中) 如图所示:
2.在properties中没有设置,右键工程->properties->Java Build Path->Order and Export 将刚刚新建的A勾选->点击ok 就可以了。如图所示:
这样就可以将jar包一同编译到.apk文件中。在模拟器下运行就不会出Could not find class ** referenced from method **错误了。
Could not find class ** referenced from method **
05-21 22:51:22.548: E/dalvikvm(226): Could not find class 'org.ksoap2.serialization.SoapObject', referenced from method cn.hi.bar.api.LocalAccessor.updateContactToWebService
错误原因及解决办法:
1.所建工程中没有导入jar包,如果是把别人的工程import到自己的eclipse中,需要右击工程Bulid Path->Add Libraries->User Library->User Libraries->new(起一个名字随便A)->Add Jars(将需要的jar包添加到A中) 如图所示:
2.在properties中没有设置,右键工程->properties->Java Build Path->Order and Export 将刚刚新建的A勾选->点击ok 就可以了。如图所示:
这样就可以将jar包一同编译到.apk文件中。在模拟器下运行就不会出Could not find class ** referenced from method **错误了。
相关文章推荐
- Android开发错误——Could not find class
- Android开发错误——Could not find class
- Android开发错误——Could not find class
- Android开发错误——Could not find class
- Android开发错误——Could not find class
- Android开发错误——Could not find class
- android开发could not find class解决方案
- Android 解决因Android版本太低,导致Could not find class 错误的解决办法
- 关于android编程中遇到的Could not find class 'com.swetake.util.Qrcode错误的原因及解决办法
- Android访问Web Service,遇到Could not find class 'org.ksoap2.serialization.SoapObject' 错误提示。
- Android E/dalvikvm: Could not find class ****** referenced from 错误
- 关于android编程中遇到的Could not find class 'com.swetake.util.Qrcode错误的原因及解决办法
- [置顶] Android开发之viewpager导报错误解决方法:错误代码 Caused by: java.lang.ClassNotFoundException: Didn't find class
- 在导入包的时候出现Could not find class 的错误
- android 使用Tabhost 发生could not create tab content because could not find view with id 错误
- E/dalvikvm: Could not find class 'cn.jpush.android.service.PushJobService', referenced from method c
- 错误处理:could not find the main class, Program will exit
- 错误处理:could not find the main class, Program will exit
- Android Studio:Could not find class android.util.ArrayMap
- [Web开发笔记][3]MyEclipse 8.0启动Tomcat 7报错:Could not find the main class: org.apache.catalina.startup……