URI有自己的getPath方法,直接返回的就是解码后的String路径 Uri uri = null; //转换为String类型 url.getPath(); System.out.print(url.getPath());