Android and GSon
I am starting to look at google's Gson. The following code errors as 开发者_JAVA百科it is entered in that the Gson in the last line is not recognised. The imports are ok so what am I missing?
import com.google.gson.*;
import com.google.gson.stream.*;
public class BuildJsonObject {
Gson myGson = new Gson();
}
Did you add the GSON Jar to your build path?
Right Click (Project) -> Build Path -> Configure Build Path... -> Go To 'Libraries' Tab -> Click 'Add External JARs...' then select the GSON jar file?
精彩评论