Why can't android find com.google.gson.Gson

后端 未结 12 2007
[愿得一人]
[愿得一人] 2021-02-03 23:12

I\'m trying to use GSON in my project, but my application is crashing, with logcat saying that com.google.gson.Gson cannot be found. I\'ve put import com.google.gson.Gson on my

12条回答
  •  误落风尘
    2021-02-03 23:59

    Have you put the jar file in the libs folder of the project? If not , try moving it there, creating the folder if required. Should be at the same level as the src folder.

    I had a similar issue trying to get an app built and that solved it.

提交回复
热议问题