Android Eclipse Error: “Gson cannot be resolved to a type”

后端 未结 2 1450
谎友^
谎友^ 2021-01-06 14:28

I\'m relatively new to Java, eclipse and android so this could be a completely silly question, but I\'m going to ask it none the less.

I\'ve got a project I\'m lear

2条回答
  •  孤街浪徒
    2021-01-06 15:05

    Same problem occurred with me too. The solution is to download the entire gson package ie. google-gson-1.6-release.zip instead of stream only version ie google-gson-stream-1.6.jar. It works fine after you unzip the package and add the jars in your build path.

    Cheers Mudit

提交回复
热议问题