开发环境 Eclipse 、Android 生成APK 提示 :
Could not find class 'com.xxx.xxx.xxx.jar' referenced from method com.eamp
解决方法:
1、添加第三方jar文件及打包到apk
第一步 添加Jar文件 在工程上右击选 Build Path 显示下窗口 点击Add Library…
点击OK –>apply and close 即添加完毕。
第二步 在图一 Java Build Path页面 Order and Export 勾选刚才添加项 点击 apply and close 。
2、添加第三方so文件及打包到apk
在工程libs目录下新建目录(例如:jni) 然后装将so文件复制到该目录下。注意so文件格式为:libxxx.so 。