getInputStream() 方法异常:java.io.FileNotFoundException 2019-10-24 Android, 笔记 getInputStream() 方法异常:java.io.FileNotFoundException解决方法:想判断返回值,在获取相应流 1234567InputStream is = null;int code = conn.getResponseCode();if (code == 200) { is = conn.getInputStream();} else { is = conn.getErrorStream();}