开发者

Android and GSon

开发者 https://www.devze.com 2023-03-26 04:09 出处:网络
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?

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

精彩评论

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

关注公众号