Android: INSTALL_FAILED_MISSING_SHARED_LIBRARY

I am trying to use the following library in my android application:

http://www.jjoe64.com/p/graphview-library.html

I downloaded the .jar file and added the Java Build Path, but received the following error:

java.lang.NoClassDefFoundError: com.jjoe64.graphview.GraphView$GraphViewData[] 

In a further investigation, I discovered that I had to use the "uses-library" tag in AndroidManifest under "application".

However, I do not know what to enter under android: name.

 <uses-library android:name="com.jjoe64.graphview"></uses-library> 

I tried this and other options, but this leads to an installation error INSTALL_FAILED_MISSING_SHARED_LIBRARY.

What should I do?

thanks

Edit: answer the question. How to close it?

0
source share
3 answers

Nevermind It revealed.

I updated Eclipse Android ADT to version 18. Therefore, I had to rename my library folder from "lib" to "libs" so that it recognized the class path. I also removed the uses-library tag from the manifest.

Hope this helps people in the future.

0
source

Project Properties-> Java Build Path-> Order and Export, check out the lib library.
This should export the lib you are using, and therefore you should not get the error you specified.

0
source

Project Properties-> Java Build Path-> Order and Export, check out the lib library. and your efforts for AndroidManifest.xml are not needed, so you can remove it. I have the same problem when I use a third-party jar. I solved this with two comments under your answer.

0
source

All Articles