Android API 28 使用 android-async-http1.4.8 报错

项目升级 API 28后,使用 android-async-http1.4.8 时,报错如下:

java.lang.NoClassDefFoundError: Failed resolution of: Lorg/apache/commons/logging/LogFactory;

换成 android-async-http1.4.9,问题可解决。

若执意要用 android-async-http1.4.8 ,在libs中加 commons-logging-1.2.jar,注意不能用

dependencies 

{

implementation 'commons-logging:commons-logging:1.2' 

}

会有冲突。

最后,还是不要用 android-async-http 了,太久不更新,问题太多。

猜你喜欢

转载自blog.csdn.net/xyx2999/article/details/82994232