你的程序是这么写的吗? URL url=new URL(urlStr); HttpURLConnection urlConn=(HttpURLConnection)url.openConnection(); InputStream inputStream=urlConn.getInputStream();你的urlStr参数写对了吗?比如:urlStr="http://127.0.0.1:8080/mp3/1.mp3";