项目升级 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 了,太久不更新,问题太多。

更多相关文章

  1. 关于android Error:Execution failed for task ':app:transformC
  2. Android(安卓)UI开源框架
  3. AndroidStudio安装及配置Gradle遇到的Error及解决办法
  4. Android(安卓)DynamicLoadApk 开源插件开发项目代码剖析
  5. Cordova 入门AndroidStudio集成
  6. React native Android(安卓)命令 打包apk
  7. Android(安卓)Kit
  8. Android(Java):把EHCache集成到android项目里
  9. qt for android 实现开机自启

随机推荐

  1. android hover监控鼠标移动事件
  2. 基于Android客户端的人人网开放平台开发
  3. Development and remote installation of
  4. [Android(安卓)Pro] android 混淆文件pro
  5. 简单的 Android(安卓)拍照并显示以及获取
  6. android 实现定时器
  7. 移动网站开发中常用的10段JavaScript代码
  8. Ubuntu搭建Eclipse+JDK+SDK的Android
  9. android 绘制折线图(AChartEngine)Linechar
  10. android用户界面之按钮(Button)教程实例