仅在API 16,17 18 android版本中,POST api的内部服务器错误

问题描述 投票:-2回答:1

我已经在POST Api之一中使用Volley进行API调用,仅针对Android API级别16、17和18收到内部服务器错误,状态代码为500。

android rest kotlin post android-volley
1个回答
0
投票

我认为问题出在OkHTTP库中,该库应该可以正常工作而不会在API> = 21中出错,但是对于21之前的版本,您需要使用以下依赖项:

实现'com.squareup.okhttp3:okhttp:3.12.2'实现“ com.squareup.okhttp3:logging-interceptor:3.12.2”

© www.soinside.com 2019 - 2024. All rights reserved.