Android : makeHttpRequest(url_create_product, "POST", params) method displaying error

on Tuesday, July 29, 2014


Following line displaying error



JSONObject json = jsonParser.makeHttpRequest(url_create_product,"POST", params);


The error is (The method makeHttpRequest(String, String, List) is undefined for the type JSONParser). and suggesting a fix (Add cast to 'jsonParser') after cliking on this suggestion the code changes to



JSONObject json = ((Object) jsonParser).makeHttpRequest(url_create_product, "POST",
params);


and error remains same. but suggestion changes to (Change method receiver cast). after clicking on this suggestion nothing happens, error and suggestion remains the same. Please guide me what is the problem. (org.json.simple.parser.JSONParser library is imported successfully. not an issue of library or imports i think)


0 comments:

Post a Comment