adobe air ane 中有的java class 打包 apk 后却没有了报NoClassDefFoundError ,ClassNotFoundException

apache flex sdk 手机项目

09-18 10:34:55.030: E/AndroidRuntime(19513): FATAL EXCEPTION: main

09-18 10:34:55.030: E/AndroidRuntime(19513): Process: com.tencent.tmgp.yybtestsdk, PID: 19513
09-18 10:34:55.030: E/AndroidRuntime(19513): java.lang.NoClassDefFoundError: Failed resolution of: Lcom/tencent/ysdk/api/YSDKApi;

 


09-18 11:27:15.830: E/AndroidRuntime(1582): Caused by: java.lang.ClassNotFoundException: Didn't find class "com.tencent.ysdk.api.YSDKApi" on path: DexPathList[[zip file "/data/app/com.tencent.tmgp.yybtestsdk-1/base.apk"],nativeLibraryDirectories=[/data/app/com.tencent.tmgp.yybtestsdk-1/lib/arm, /vendor/lib, /system/lib]]

 

 

参考 : google 关键字 air ane noclassdeffound 

 

NoClassdefFoundError on thirdparty class files when building Adobe Native Extension 

 根据参考答案的灵感, 从 air sdk 目录中找到 dx.jar 替换掉 flex sdk 中的 dx.jar 该问题解决

posted @ 2017-02-06 21:59  Panda Fang  阅读(537)  评论(0编辑  收藏  举报