升级gradle3.0以上后遇到的问题及解决方案

1、引用三方module中报错:Failed resolution of: Lorg/apache/http/message/BasicNameValuePair;

问题分析:出现此问题主要是 apache 的 http 库在android 9.0删除导致的,出现此问题应该是使用了 apache 的http库。

解决方案:在App的Mainfest中<appplication>中配置以下代码:

<uses-library android:name="org.apache.http.legacy" android:required="false" />

参考:https://blog.csdn.net/FrancisBingo/article/details/90271116

2、 Unable to add window android.view.ViewRootImpl$W@140715f -- permission denied for window type 2003

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。