xception: An error occurred while executing doInBackground()

Posted 彬sir哥

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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()的主要内容,如果未能解决你的问题,请参考以下文章

An error occurred while collecting items to be installed session context was:(profile=DefaultProfile

信息: Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will

[Java Web]Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors(

Error parsing HTTP request header Note: further occurrences of HTTP header parsing errors will be l

java A JNI error has occurred, please check your installation and try again A JNI error has occurr

求解答在eclipse中运行Android项目出现的问题 ——Launching MyFirstAPP' has encountered a program. Errors occurre