Ошибка Ionic 3: ресурс xml / network_security_config не найден - PullRequest
0 голосов
/ 13 октября 2019

Когда я пытаюсь запустить 'ionic cordova build android', я получаю следующее исключение:

Не удалось связать ресурс Anroid J: \ workspaces \ APCO \ App \ apco \ platform \ android \ app\ build \ промежуточные \ merged_manifests \ debug \ AndroidManifest.xml: 22: AAPT: ошибка: dresource xml / network_security_config (он же io.ionic.starter: xml / network_security_config) не найден.

Проблема есть,У меня есть network_security_config.xml внутри '… APP-FOLDER \ platform \ android \ res \ xml' и '… APP-FOLDER \ resources \ android \ xml'.

Мой AndroidManifest.xml:

...
<application
        android:debuggable="true"
        android:hardwareAccelerated="true"
        android:icon="@mipmap/ic_launcher"
        android:label="@string/app_name"
        android:networkSecurityConfig="@xml/network_security_config"
        android:supportsRtl="true" >
...

Мой config.xml:

 <platform name="android">
 <edit-config file="AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
      <application android:networkSecurityConfig="@xml/network_security_config" />
 </edit-config>
 <resource-file src="resources/android/xml/network_security_config.xml" target="res/xml/network_security_config.xml" />
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...