android studio java.lang.NoClassDefFoundError Gson

前端 未结 3 1746
情话喂你
情话喂你 2020-12-05 15:21

I\'ve made pretty much a fresh project. I added in the gson library by google to my projects /libs directory and added it as a library. I also adde

3条回答
  •  借酒劲吻你
    2020-12-05 16:11

    Something went wrong in incremental build system. One of this should help:

    1. Menu Build -> Rebuild project
    2. Delete folder /build
    3. Close Android Studio, delete /build folder
    4. Right click on your project -> "Open module settings" -> Dependencies tab -> check if Export is checked for your library

提交回复
热议问题