关于安卓开发中count无法获取数据。。。。。。。。。。。

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;
}


    ![错误](https://img-ask.csdn.net/upload/201804/30/1525061707_521365.png)


    ![debug](https://img-ask.csdn.net/upload/201804/30/1525061779_610642.png)
    Cannot find local variable 'e'

把NumberFormatException改成Exception

把NumberFormatException改成Exception

把NumberFormatException改成Exception就好了

你试试把NumberFormatException改成Exception

打印一下 HttpUtils.httpGet(url) 的返回值

把NumberFormatException改成Exception-