Jar中包含so文件,启动失败

2015-10-29  本文已影响649人  ilaoke

Android项目启动时,报以下错误 :

The library 'SocialSDK_QQZone_2.jar' contains native libraries that will not run on the device.
The following libraries were found: assets/libwbsafeedit.so

解决方法:
修改eclipse的配置如下,去除勾选Force error when external jars contain native libraries

在网上查这个问题时,很多文章指出需要将Skip packaging and dexing until export or launch.也去除勾选,其实是不需要的。

这个选项的意思是:如果勾选,则在你每次修改完代码后,eclipse不会自动帮你生成apk文件,直到导出或运行项目时。所以此项勾选,在coding时eclipse不用自虐的去一直生成apk,推荐勾选上。

上一篇 下一篇

猜你喜欢

热点阅读