编译错误提示信息:

Suggestion: add 'tools:replace="android:networkSecurityConfig"' to  element at AndroidManifest.xml:16:5-199:19 to override.


            android:allowBackup="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:supportsRtl="true"
        android:theme="@style/AppTheme"
        android:networkSecurityConfig="@xml/network_security_config"
        tools:replace="android:networkSecurityConfig">

 

除了加这句以外,还应该加一句

    xmlns:tools="http://schemas.android.com/tools"
 

否则会报错 The prefix "tools" for attribute "tools:replace" associated with an element type "application" is not bound.


 

更多相关文章

  1. Android编译过程详解(二)
  2. android 编译
  3. Android(安卓)Framework中添加AIDL文件编译
  4. res\drawable-hdpi\new.png:0: error: invalid symbol: 'new'
  5. Android编译过程详解(一)
  6. Android编译过程详解(三)
  7. android aidl 进程通信 调用错误
  8. cocos2d-x & Android(安卓)环境配置笔记
  9. Android的NDK开发步骤

随机推荐

  1. android 本地数据库
  2. Google Android Market疑遭屏蔽
  3. Android项目应用程序—应用程序及生命周
  4. 关于Android机型的pid vid的那些破事儿
  5. Android(安卓)开发者的 Flutter(六) —— F
  6. 基于 Android(安卓)NDK 进行 OpenGL ES开
  7. android wifi 无线调试
  8. [Android] 如何制作手电筒程序
  9. 如何在 Windows 平台上下載 Android 的原
  10. Android中Shape 和 Selector的用法