How to add library files in an Android studio

Asked 2 years ago, Updated 2 years ago, 149 views

I'm going to use the Gson library to serialize/deserialize JSON objects in the Android studio. Library enclosures are not working. I created a new project and put the gson-2.2.3.jar file in the libs folder, added the library as a library, and compile files ('libs/gson-2.2.3.jar') in the gradle file, but when I build it, it says ClassDefNotFoundException... Why is it like this?

android gradle android-studio dependency-management

2022-09-22 22:35

1 Answers

I've been struggling for hours with the same thing, so try this.


2022-09-22 22:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.