开发者

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?

Android and GSon

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜