error: No resource identifier found for attribute 'networkSecurityConfig' in package 'android'

 

维护项目适配Android10时,提示网络请求错误

error:CLEARTEXT communication to xxx not permitted by network security policy

manifest文件中的application添加:android:networkSecurityConfig="@xml/network_config" 编译一直报错,

添加如下忽略依然不行,

tools:ignore="UnusedAttribute"
tools:replace="android:networkSecurityConfig"

修改Android10 sdk后正常(原项目默认变成了23了)

适配Android10时 networkSecurityConfig 编译报错

 

相关文章:

  • 2022-12-23
  • 2021-11-02
  • 2021-12-27
  • 2022-12-23
  • 2021-11-25
  • 2021-08-07
  • 2022-01-11
  • 2022-12-23
猜你喜欢
  • 2021-09-07
  • 2021-06-29
  • 2021-06-13
  • 2021-10-25
  • 2021-12-29
  • 2021-12-05
  • 2021-05-31
相关资源
相似解决方案