Android开发错误——Could not find class
来源:互联网 发布:海康半球网络摄像机 编辑:程序博客网 时间:2024/06/01 09:52
错误信息:
2.在properties中没有设置,右键工程->properties->Java Build Path->Order and Export 将刚刚新建的A勾选->点击ok 就可以了。如图所示:
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 **错误了。
0 0
- 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开发错误——Could not find class
- android开发could not find class解决方案
- Android E/dalvikvm: Could not find class ****** referenced from 错误
- 关于 Could not find main class 错误
- android jar : could not find class
- android Could not find class 原因之一
- could not find class
- could not find class
- Android出现Could not find ***.apk!错误
- Android访问Web Service,遇到Could not find class 'org.ksoap2.serialization.SoapObject' 错误提示。
- Android开发遇到Could not find class 'org.ksoap2.transport.HttpTransportSE'
- Android WebView使用注意
- nyoj 37 nyoj15区间型动态规划
- 【编程练习】快速select算法的实现
- WLANAPI详解
- FreeMarker的应用场景
- Android开发错误——Could not find class
- 大头锻炼日记2 -- 无指针和结构体的vbscript中实现单向链表
- Java中的Map List Set等集合类
- javascript操作table的动态添加行和删除行
- Android网络编程(一)
- 07 类的扩展
- gcc编译错误XX/bin/ld:cannot find -lxxx
- 大头锻炼日记3 -- vbscript静态链表实现法
- PHP源码来操作memcached服务