首页 > 其他 > 详细

Unhandled Exxception “Unhandled exception type IOException”?

时间:2015-04-05 10:29:30      阅读:224      评论:0      收藏:0      [点我收藏+]

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.

  

Unhandled Exxception “Unhandled exception type IOException”?

原文:http://www.cnblogs.com/spring87/p/4393680.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!