Library Import Issues
Solution 1:
Make sure you are adding gson jar as an under android dependency
and not Referenced Libraries
in Properties -> Java Build Path.
If that doesnt work do these steps :
Remove the libraries from the standard Java build path .
Right click on the project name > Properties > Java Build Path >(tab) Libraries > remove everything except the “Android X.X” and the “Android Dependencies”
Rename the libraries folder from “lib” to “libs”
By doing that, all the libraries in the folder "libs" are found by the Android plugin and are added to the "Android Dependencies".
Clean the project
See here for more details.
Solution 2:
I have had a bad experience with this. I thought it was because the older version of android does not support Gson. However, once I copied out the whole project and changed the "target build" to the same version, it runs okay.
Then when I went back to the old copy and check the property>Java Build Path>(tab) Libraries
, I found there was no "Android Dependencies".
It must be there for Eclipse!!
Post a Comment for "Library Import Issues"