Unhandled Exxception “Unhandled exception type IOException”?
生活随笔
收集整理的這篇文章主要介紹了
Unhandled Exxception “Unhandled exception type IOException”?
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
Unhandled Exxception ?“Unhandled exception type IOException”?
在Android studio中,自動(dòng)遇見(jiàn)這個(gè)異常報(bào)錯(cuò),如果eclipse會(huì)自動(dòng)提示,但是AS提示很抽象,不容易發(fā)現(xiàn),解決方案:
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.
轉(zhuǎn)載于:https://www.cnblogs.com/spring87/p/4393680.html
總結(jié)
以上是生活随笔為你收集整理的Unhandled Exxception “Unhandled exception type IOException”?的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Unity-3d Day06
- 下一篇: hdu 1301 Jungle Road