运行alipay支付,结果一直报这个错,最终,在stackoverflow中找到了答案,alipay_lib需要以lib项目引入,而不是把jar引入。都怪没好好看文档。。。
NoClassDeffoundError:com.alipay.android.app.sdk.R$String 错误
Referring library project .. gives NoClassDeffoundError for R files
http://stackoverflow.com/questions/11407190/referring-library-project-gives-noclassdeffounderror-for-r-files
You're probably not importing it the right way. There are two ways of importing android code into a project
Jar file: Should not have any kind of resource, as of right know you will not be allowed to access it.
Library project: You import the project into the workspace as a standalone app, and in the project that needs the library, reference it at Properties->Android->Library->Add.
Jar files are just zipped code. You can copy&paste into lib, and add them at the BUILD_PATH. But library projects are reference. Is not gonna work if you just copy&paste the project into the libs folder, as you said.
It seems you're mixing both.
相关推荐
JavaMail的java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream错误 原因: MyEclipse6.5的javaee.jar中的mail包与JavaMail包有冲突。 解决: 在MyEclipse目录下(D:\Program Files\MyEclipse ...
主要介绍了Android 出现:Android出现:java.lang.NoClassDefFoundError: android/os/PersistableBundle错误解决办法的相关资料,需要的朋友可以参考下
该jar包解决报错java.lang.NoClassDefFoundError: org/apache/james/mime4j/MimeException,亲测可用。
今天测试突然给我说我写的XX界面一点app就crash了! 纳尼,我肯定表示不服啊!... W/System.err: java.lang.NoClassDefFoundError: android/os/PersistableBundle W/System.err: at java.lang.Class.getDeclar
java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport异常处理
整个系统都没有错误,但是在发布运行后,控制台上却抛出了这样的异常: java.lang.ClassNotFoundException: org.apache.commons.dbcp.BasicDataSource
jackson-annotations-2.10.2.jar jackson-core-2.10.2.jar jackson-databind-2.10.2.jar NoClassDefFoundError解决
NULL 博文链接:https://lyndon-lin.iteye.com/blog/856002
jdk升级之后出现异常:java.lang.NoClassDefFoundError: javax/xml/ws/Service 1、解决方案jdk降级至1.8之前 2、由于JDK9以后,去除了javax.xml包需要引入对应的jar包 <groupId>javax.activation <artifactId>...
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jersey/api/client/config/ClientConfig at org.apache.hadoop.yarn.client.api.TimelineClient.createTimelineClient(TimelineClient.java:...
java.lang.NoClassDefFoundError: de/javakaffee/kryoserializers/CurrencySerializer
Caused by: java.lang.NoClassDefFoundError: com.sun.org.apache.xml.internal.resolver.CatalogManager at com.sun.xml.ws.util.xml.XmlUtil.createEntityResolver(XmlUtil.java:266) at org.jvnet.jax_ws_...
NULL 博文链接:https://bijian1013.iteye.com/blog/2305804
MyEclipse+SSH错误:java.lang.NoClassDefFoundError orgobjectwebasmCodeVisitor解决.rar
(1)java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream (2)java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport 的解决办法,还有对应的两个包:mail.jar和activation.jar ...
在jsp运行过程中,报错 java.lang.NoClassDefFoundError org.apache.xml.serializer.TreeWalker时的处理方法。
NULL 博文链接:https://hnychenl.iteye.com/blog/675625
NULL 博文链接:https://lym6520.iteye.com/blog/310725
jdk升级jdk10后,原本jdk自带的 webservice一些包确实,引起的一系列错误解决方案
该开发包是解决 JavaMail 发送邮件报错:java.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream错误 ava.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 使用方法: 将javaee.jar ...