My code was working perfectly before but now it is throwing out an exception,
The code :
Gson gson = new GsonBuilder().setPrettyPrinting().create();
JsonElement jsonElement = JsonParser.parseString(resultJsonString);
and the exception in the line JsonElement jsonElement = JsonParser.parseString(resultJsonString);
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method parseString(String) is undefined for the type JsonParser
Any hints to why this is happening? It was working fine till yesterday!