开发环境  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…

 

apk 添加so、jar文件

 

apk 添加so、jar文件   apk 添加so、jar文件

 

apk 添加so、jar文件 apk 添加so、jar文件

点击OK –>apply and close  即添加完毕。

第二步 在图一  Java Build Path页面 Order and Export 勾选刚才添加项  点击 apply and close

2、添加第三方so文件及打包到apk

 在工程libs目录下新建目录(例如:jni) 然后装将so文件复制到该目录下。注意so文件格式为:libxxx.so

apk 添加so、jar文件

相关文章:

  • 2021-07-31
  • 2021-12-06
  • 2021-12-11
  • 2022-03-10
  • 2021-10-19
  • 2021-04-19
  • 2021-04-05
  • 2021-11-25
猜你喜欢
  • 2021-04-02
  • 2021-04-02
  • 2021-12-04
  • 2021-05-20
  • 2021-11-23
  • 2021-04-12
  • 2022-01-16
相关资源
相似解决方案