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

后端 未结 2 1449
谎友^
谎友^ 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

    0 讨论(0)
  • 2021-01-06 15:11

    I'm not sure exactly why this worked but I extracted the zip and just added gson-1-4.jar and it appears to have worked.

    Hooray!

    0 讨论(0)
提交回复
热议问题