public static Integer getResidentCount(){
//TODO
String url = BASE_URI+"/ass1.resident/findByResid";
Integer count = null;
try {
count= Integer.parseInt(HttpUtils.httpGet(url));
}catch (NumberFormatException e){
Log.w(TAG,"getResidentCount exception",e);
}
return count;
}


Cannot find local variable 'e'
把NumberFormatException改成Exception
把NumberFormatException改成Exception
把NumberFormatException改成Exception就好了
你试试把NumberFormatException改成Exception
打印一下 HttpUtils.httpGet(url) 的返回值
把NumberFormatException改成Exception-