错误信息:
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中) 如图所示:
[img]
[/img]
2.在properties中没有设置,右键工程->properties->Java Build Path->Order and Export 将刚刚新建的A勾选->点击ok 就可以了。如图所示:
[img]
[/img]
这样就可以将jar包一同编译到.apk文件中。在模拟器下运行就不会出Could not find class ** referenced from method **错误了。
- 大小: 56.6 KB
- 大小: 37.6 KB
分享到:
相关推荐
Eclipse 编译时遇到错误could not find the main class,program will exit的解决方法
在Myeclipse 8.5中用外带的tomcat时候,会因为JDK版本的问题出现Could not find the main class,按照上述文档的步骤就可以解决,我亲自体验过
WIN7下运行Jar文件提示Could not find the main class
Could not find module 'D:\codna\Library\bin\geos_c.dll'Could not find module 'D:\codna\Library\bin\geos_c.dll'Could not find module 'D:\codna\Library\bin\geos_c.dll'
解决 Can not find the main class. Program will exit. 难题
NULL 博文链接:https://yintech.iteye.com/blog/374842
NULL 博文链接:https://liuenjian.iteye.com/blog/711927
Could not find method clean() for arguments [{type=class org.gradle.api.tasks.Delete}, build_458py9op120bi768cfxm5xc2wrunclosure1_run_closure1runclosure1_closure4@7daf132f] on object of type org....
Could not find Developer Disk Image"问题
百度飞桨遇到的问题,安装cuda不能启动,错误提示importError: Could not find 'cudnn64_7.dll'的解决。将压缩包内的文件对应放入cuda安装位置即可!
【故障解决】OGG-00446 Could not find archived log for sequence.pdf
xcode Could not find Developer Disk Image 11.4 (15F5061c) 亲测可用 /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport 记得一定要重启Xcode才生效.
NULL 博文链接:https://smartgwt.iteye.com/blog/1252268
xcode 、could not find developer disk image、真机测试、ipa打包
xcode Could not find Developer Disk Image
打包找不到 zkclient COULD NOT FIND zkclient-0.11 解压后将jar包与pom文件都放在.m2\repository指定路径下
解决Xcode在ipad/iphone9.2系统真机测试时出现could not find developer disk image问题,只要拷贝这个文件到/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport,然后重新启动...
打包找不到 jcommander COULD NOT FIND jcommander-1.48 解压后将jar包与pom文件都放在.m2\repository指定路径下
主要介绍了Tensorflow安装问题: Could not find a version that satisfies the requirement tensorflow,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来...
打包找不到 stream COULD NOT FIND stream-2.5.2 解压后将jar包与pom文件都放在.m2\repository指定路径下