I'm using json-simple library for working with json. I have migrated from Eclipse to AndroidStudio and few parts of code began marks as error. But still project builds normally.
import org.json.simple.JSONArray;
public void addParam(String[] params) {
JSONArray json = new JSONArray();
for (int i = 0, l = params.length; i < l; ++i) {
//In next line part "params[i]" AndroidStudio underlined with red
json.add(params[i]);
}
mParamsString += json.toJSONString();
}
When I'm moving cursor over this line there is error message:
add(E) in ArrayList cannot be applied to java.lang.String
So if everything was fine in Eclipse and project compiles normally I think something wrong with AndroidStudio. How to remove this error, beacause of this error whole project marked as it contains error, it's very annoying