I have just updated android studio release from 0.9.2 to 0.9.3 and opening an existing project (that was running with 0.9.2) the following error (red underline) appears in all '.toString' methods (f.i. Integer.toString): non static method toString() cannot be referenced from a static context. But the debug does not show anything and the app runs properly. Please any suggestion?
example:
private String read(String nomefile)
{
String dati=null;
try{
FileInputStream fin=openFileInput(nomefile);
int c;
String temp="";
while ((c=fin.read())!=-1)
{
temp=temp+Character.toString(((char)c));
}
dati=temp;
} catch (FileNotFoundException e1) {
e1.printStackTrace();
} catch (IOException e1) {
e1.printStackTrace();
}
return dati;
}
and '.toString' is red underlined with this annotation: 'non static method toString() cannot be referenced from a static context' Upate: replacing “Character.toString(...)” with “Character.valueOf(...)” seems all ok (no red underline). This means that toString method will be deprecated?