简体   繁体   English

无法在Eclipse中找到Android的库

[英]Unable to find library in eclipse for Android

I have the zbar.jar in my libs folder and I have linked it by Build Path/Configure Build Path 我的libs文件夹中有zbar.jar ,并且已通过构建路径/配置构建路径将其链接

java.lang.UnsatisfiedLinkError: Couldn't load iconv from loader dalvik.system.PathClassLoader[dexPath=/data/app/net.xxxxx.xxxx-2.apk,libraryPath=/data/app-lib/net.xxxxx.xxxxxx-2]: findLibrary returned null

What else can i do to load this library? 我还可以做什么来加载该库?

help http://assemblyx.net/Untitled-2.png help http://assemblyx.net/Untitled-1.png 帮助http://assemblyx.net/Untitled-2.png 帮助http://assemblyx.net/Untitled-1.png

This has nothing to do with zbar.jar , the project requires you to have iconv . 这与zbar.jar ,该项目要求您具有iconv Check and make sure you copied over libiconv.so . 检查并确保您复制了libiconv.so

Here are three workarounds that have worked for me: 以下是对我有用的三种解决方法:

  1. Undo the change to your build path. 撤消对构建路径的更改。 Restart Eclipse/Android Studio and, finally, add the JAR file to your libs folder, Android Developer Tools will add it automatically to the build path. 重新启动Eclipse / Android Studio,最后将JAR文件添加到您的libs文件夹中,Android Developer Tools会自动将其添加到构建路径中。
  2. Add the JAR file to your libs folder, if ADT doesn't add it to the build path, right click your project and select Refresh . 将JAR文件添加到您的libs文件夹中,如果ADT没有将其添加到构建路径中,请右键单击您的项目,然后选择Refresh
  3. Undo the change, Clean your project and repeat step 1. 撤消更改, Clean项目并重复步骤1。

Hope it helps. 希望能帮助到你。

右键单击libs文件夹中的* .jar文件,然后转到“构建路径”->“添加到构建路径”-清理并运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM