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

后端 未结 12 2137
[愿得一人]
[愿得一人] 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-04 00:11

    I ran into the same issue (when installed SDK 17) ...

    The solution is, that you just put the pure jar files into the "libs" folder (without subfolders). You also don't need to declare them, android wil find them itself. You may need to do a Project > Clean

提交回复
热议问题