I'm trying to use gson in a project but haven't tried adding/using libraries before beyond the very basics. I followed these instructions https://www.jetbrains.com/idea/help/configuring-module-dependencies-and-libraries.html#d1552849e127 and added the .jar files to the Library and its showing up under Dependencies. But when I try to use it with this code
Gson gson = new Gson();
MyType myobject = gson.fromJson(jsonSource, MyType.class)
IntelliJ isn't recognising it. Do I still need to use an import statement and if so, what exactly?
Edit: Intellij just prompted me to import the appropriate file, which is(import com.google.gson.Gson) if it helps anyone here.