Unhandled Exxception “Unhandled exception type IOException”?
在Android studio中,自动遇见这个异常报错,如果eclipse会自动提示,但是AS提示很抽象,不容易发现,解决方案:
You should add "throws IOException" to your main method:public static void main(String[] args) throws IOException {You can read a bit more about checked exceptions (which are specific to Java) in JLS.