使用的 target sdk是23,
会发现:import org.apache.http.HttpResponse;
这些都报错了。
解决方法:
请在build.gradle加入
android{ useLibrary ‘org.apache.http.legacy‘ }
本文介绍了解决使用targetsdk为23时遇到的import org.apache.http.HttpResponse;等导入错误的方法。通过在build.gradle文件中加入特定配置,可以有效解决此问题。
使用的 target sdk是23,
会发现:import org.apache.http.HttpResponse;
这些都报错了。
解决方法:
请在build.gradle加入
android{ useLibrary ‘org.apache.http.legacy‘ }
您可能感兴趣的与本文相关的镜像
Stable-Diffusion-3.5
Stable Diffusion 3.5 (SD 3.5) 是由 Stability AI 推出的新一代文本到图像生成模型,相比 3.0 版本,它提升了图像质量、运行速度和硬件效率

被折叠的 条评论
为什么被折叠?