如何解决java.lang.NullPointerException:wrapped.contentEncoding不能为null?
问题是我尝试通过移动应用程序调用端点,这些应用程序是我从 android studio 开发的 android 应用程序。在后端站点也不例外出现。但随后在 logcat android 中显示以下错误:
E/Volley: [354] NetworkDispatcher.run: Unhandled exception java.lang.NullPointerException: wrapped.contentEncoding must not be null
java.lang.NullPointerException: wrapped.contentEncoding must not be null
at com.android.tools.appinspection.network.httpurl.TrackedHttpURLConnection.getContentEncoding(TrackedHttpURLConnection.kt:177)
at com.android.tools.appinspection.network.httpurl.HttpURLConnectionWrapper.getContentEncoding(HttpURLConnectionWrapper.kt:127)
at com.android.volley.toolbox.HurlStack.entityFromConnection(HurlStack.java:160)
at com.android.volley.toolbox.HurlStack.performRequest(HurlStack.java:120)
at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:97)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:114)
如何解决此问题?非常感谢你们的帮助
The issue is I try to call endpoint through mobile apps which are android apps that I developed from android studio. at backend site is no exception appear. but then at logcat android showing up the error below:
E/Volley: [354] NetworkDispatcher.run: Unhandled exception java.lang.NullPointerException: wrapped.contentEncoding must not be null
java.lang.NullPointerException: wrapped.contentEncoding must not be null
at com.android.tools.appinspection.network.httpurl.TrackedHttpURLConnection.getContentEncoding(TrackedHttpURLConnection.kt:177)
at com.android.tools.appinspection.network.httpurl.HttpURLConnectionWrapper.getContentEncoding(HttpURLConnectionWrapper.kt:127)
at com.android.volley.toolbox.HurlStack.entityFromConnection(HurlStack.java:160)
at com.android.volley.toolbox.HurlStack.performRequest(HurlStack.java:120)
at com.android.volley.toolbox.BasicNetwork.performRequest(BasicNetwork.java:97)
at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:114)
how to solve this issue? really appreciate your guys help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论