Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70769

Ionic 3 error: resource xml/network_security_config not found

$
0
0

@carolioli wrote:

When I try to run ‘ionic cordova build android’ I’m given this exception:

Anroid resource linking failed
J:\workspaces\APCO\App\apco\platforms\android\app\build\intermediates\merged_manifests\debug\AndroidManifest.xml:22: AAPT: error: dresource xml/network_security_config (aka io.ionic.starter:xml/network_security_config) not found.

Problem is, I have network_security_config.xml inside ‘…APP-FOLDER\platforms\android\res\xml’ and ‘android/xml’ and ‘…APP-FOLDER\resources\android\xml’.

My 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" >
...

My 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" />

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70769

Trending Articles