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

后端 未结 12 2010
[愿得一人]
[愿得一人] 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:57

    Do not edit .classpath file directly or even put files into lib folders out of Eclipse. Instead use the Java Build Path->Order and Export tab to select libraries to be exported in the final deployment unit (eg war/apk) To be on safer side, do a Project->Clean after you change the build path.

提交回复
热议问题