NoClassDefFoundError的建设的Adobe本机扩展时,第三方的类文件 [英] NoClassdefFoundError on thirdparty class files when building Adobe Native Extension

查看:136
本文介绍了NoClassDefFoundError的建设的Adobe本机扩展时,第三方的类文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我建立一个Adobe本机扩展(ANE),其中有第三方JAR依赖。我确保第三方的类文件提取和ANE JAR内包装(如答案)

I am building an Adobe Native extension (ANE) which has third party JAR dependencies. I am making sure that the third party class files are extracted and packaged inside the ANE JAR (as explained in this answer)

但是,当我生成最终的Andr​​oid APK我的应用程序,这些类中缺少classes.dex。看来,ADT是其剥离出来,不知何故。值得一提的是,我使用了第三方JAR是建立在Java 1.7和我使用的Java 1.6。

But when I build the final android APK for my application, these classes are missing in the classes.dex. It seems that ADT is stripping them out somehow. It is worth mentioning that the third party JAR that I am using is built with Java 1.7 and I am using Java 1.6.

推荐答案

不知道这是最为理想的事情,但我通过更换dx.jar在$ FLEX_AIR_SDK_HOME / lib中/安卓/斌/ DX解决了这个。罐一个在Android的构建工具20版本本DX工具并没有剥离出来的类51 Java的主要版本。

Not sure if this is the most ideal thing to do but I solved this by replacing the dx.jar in $FLEX_AIR_SDK_HOME/lib/android/bin/dx.jar with the one in Android build tools version 20. This dx tool was not stripping out classes with java major version 51.

这篇关于NoClassDefFoundError的建设的Adobe本机扩展时,第三方的类文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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