xception: An error occurred while executing doInBackground()

android的报错提示:

E/AndroidRuntime: FATAL EXCEPTION: AsyncTask #2
                  Process: com.xiangsheng.xsface, PID: 23080
                  java.lang.RuntimeException: An error occurred while executing doInBackground()
                      at android.os.AsyncTask$4.done(AsyncTask.java:415)
                      at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:383)
                      at java.util.concurrent.FutureTask.setException(FutureTask.java:252)
                      at java.util.concurrent.FutureTask.run(FutureTask.java:271)

xception: An error occurred while executing doInBackground()
错误在哪,看来找不到,直接说吧 最好就是需要调试,调试时可以发现有没有提示报错,是因为调试能对你很有帮助
解决,如下图:
xception: An error occurred while executing doInBackground()

上一篇:报错 An unknown server-side error occurred while processing the command的解决办法


下一篇:Mailcore2 使用SMTP发送邮件 Domain=MCOErrorDomain Code=30 的解决方案