Replace "com.google.gson.Gson" with "com.google.gson.*" and see if that does the trick: that is what I have in my working code using Gson.
I should know Java well enough to know why one works and the other does not, but I keep forgetting;) You might want to check Order and Export tab under Java Build Path too: the jar for Gson should come after that for for your own code and for the version of Android you are building for. Again, that is what I have in my working code. On Feb 21, 10:07 pm, Passion Android <[email protected]> wrote: > I'm trying to use GSON in my project, but my application is crashing, > with logcat saying that com.google.gson.Gson cannot be found. I've put > import com.google.gson.Gson on my class files, I have gson in my > package explorer, and added it by Right click -> build path -> add > libraries. It also shows up in Project->properties->java build > path->libraries tab->gson. What have I done wrong? > > Rickky > San Jose -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

