安卓:INSTALL_FAILED_MISSING_SHARED_LIBRARY [英] Android: INSTALL_FAILED_MISSING_SHARED_LIBRARY
问题描述
我尝试使用以下库在我的Android应用:
I'm trying to use the following library in my Android app:
http://www.jjoe64.com/p/graphview-library.html
我donwloaded .jar文件,并添加其Java构建路径,但我得到了以下错误:
I donwloaded the .jar file and added it the Java Build Path, but I got the following error:
java.lang.NoClassDefFoundError: com.jjoe64.graphview.GraphView$GraphViewData[]
在进一步的调查,我发现,我不得不用使用库标签中的AndroidManifest应用程序下。
On further investigation, I discovered that I had to use the "uses-library" tag in the AndroidManifest under "application".
不过,我不知道该怎么下的android输入:名称
However, I don't know what to enter under android:name.
<uses-library android:name="com.jjoe64.graphview"></uses-library>
我尝试这样做,其他的变化,但它会导致INSTALL_FAILED_MISSING_SHARED_LIBRARY安装错误。
I tried this and other variations but it results in INSTALL_FAILED_MISSING_SHARED_LIBRARY installation error.
我该怎么办?
感谢
编辑:回答过的问题。如何关闭呢?
Question Answered. How do I close this?
推荐答案
没关系。想通了。
我更新的Eclipse的Android ADT到18版本,所以我需要从LIB到库重命名我的库文件夹为它认识到类路径。我也删除从清单中的用途库标签。
I updated Eclipse's Android ADT to version 18. So I needed to rename my library folder from "lib" to "libs" for it to recognize the class path. I also removed the uses-library tag from the Manifest.
希望这有助于人们对未来。
Hope this helps people in the future.
这篇关于安卓:INSTALL_FAILED_MISSING_SHARED_LIBRARY的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!