I'm trying to build a Nativescript application while whitelisting self-signed certificates for android.
It use to work I'm pretty sure, but now I'm getting the following Gradle error :
`Platform android successfully added. v3.4.2
Support for Node.js 12.22.6 is not verified. NativeScript CLI might not install or run properly.
Executing before-prepare hook from /home1/local/jenkins/workspace/myApp/hooks/before-prepare/nativescript-dev-typescript.js
Found peer TypeScript 2.6.2
Preparing project...
Successfully prepared plugin nativescript-angular for android.
Successfully prepared plugin nativescript-audio for android.
Successfully prepared plugin nativescript-barcodescanner for android.
Successfully prepared plugin nativescript-couchbase for android.
Successfully prepared plugin nativescript-ripple for android.
Successfully prepared plugin nativescript-sqlite for android.
Successfully prepared plugin nativescript-theme-core for android.
Successfully prepared plugin nativescript-toast for android.
Successfully prepared plugin nativescript-toolbox for android.
Successfully prepared plugin nativescript-ui-sidedrawer for android.
nativescript-vibrate 5.2.0 for android is not compatible with the currently installed framework version 3.4.2.
Successfully prepared plugin nativescript-vibrate for android.
Successfully prepared plugin tns-core-modules for android.
Successfully prepared plugin nativescript-intl for android.
Successfully prepared plugin nativescript-permissions for android.
Successfully prepared plugin nativescript-ui-core for android.
Successfully prepared plugin tns-core-modules-widgets for android.
Project successfully prepared (android)
Building project...
Gradle build...
applying user-defined configuration from /home1/local/jenkins/workspace/myApp/app/App_Resources/Android/app.gradle
Applying settings from /home1/local/jenkins/workspace/myApp/app/App_Resources/Android/settings.json
creating include.gradle for plugin /home1/local/jenkins/workspace/myApp/platforms/node_modules/nativescript-audio
creating include.gradle for plugin /home1/local/jenkins/workspace/myApp/platforms/node_modules/nativescript-barcodescanner
add include.gradle from /home1/local/jenkins/workspace/myApp/node_modules/nativescript-couchbase/platforms/android/include.gradle
add include.gradle from /home1/local/jenkins/workspace/myApp/node_modules/nativescript-ripple/platforms/android/include.gradle
add include.gradle from /home1/local/jenkins/workspace/myApp/node_modules/nativescript-vibrate/platforms/android/include.gradle
creating include.gradle for plugin /home1/local/jenkins/workspace/myApp/platforms/node_modules/nativescript-ui-core
applying plugin configuration from /home1/local/jenkins/workspace/myApp/platforms/android/app/build/configurations/nativescript-audio/include.gradle
applying plugin configuration from /home1/local/jenkins/workspace/myApp/platforms/android/app/build/configurations/nativescript-barcodescanner/include.gradle
applying plugin configuration from /home1/local/jenkins/workspace/myApp/platforms/android/app/build/configurations/nativescript-couchbase/include.gradle
applying plugin configuration from /home1/local/jenkins/workspace/myApp/platforms/android/app/build/configurations/nativescript-ripple/include.gradle
applying plugin configuration from /home1/local/jenkins/workspace/myApp/platforms/android/app/build/configurations/nativescript-vibrate/include.gradle
applying plugin configuration from /home1/local/jenkins/workspace/myApp/platforms/android/app/build/configurations/nativescript-ui-core/include.gradle
adding aar plugin dependency: /home1/local/jenkins/workspace/myApp/node_modules/tns-core-modules-widgets/platforms/android/widgets-release.aar
false
/home1/local/jenkins/workspace/myApp/platforms/android/app/src/main/res/xml/network_security_config.xml:5:32-53: AAPT: No resource found that matches the given name (at 'src' with value '@raw/digicert_egs.pem').
/home1/local/jenkins/workspace/myApp/platforms/android/app/src/main/res/xml/network_security_config.xml:6:32-50: AAPT: No resource found that matches the given name (at 'src' with value '@raw/a7848a7ee.pem').
/home1/local/jenkins/workspace/myApp/platforms/android/app/build/intermediates/res/merged/F0F1F2F3F4F5/debug/xml/network_security_config.xml:5: error: Error: No resource found that matches the given name (at 'src' with value '@raw/digicert_egs.pem').
/home1/local/jenkins/workspace/myApp/platforms/android/app/build/intermediates/res/merged/F0F1F2F3F4F5/debug/xml/network_security_config.xml:6: error: Error: No resource found that matches the given name (at 'src' with value '@raw/a7848a7ee.pem').
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processF0F1F2F3F4F5DebugResources'.
com.android.ide.common.process.ProcessException: Failed to execute aapt`
nativescript version : 3.4.2
node version : 12.7.7
my network_security_config.xml file (in myApp/app/App_Resources/Android/res/xml/..) :
`<?xml version="1.0" encoding="utf-8"?>
`
with my two certificates inside myApp/app/App_Resources/Android/res/raw/..
and I updated AndroidManifest.xml with application tag attribute : android:networkSecurityConfig="@xml/network_security_config"
Did something changed or are my paths uncorrect ? (I tried other paths without success, either I get error for the certificates or for my network_security_config.xml file)
I'm trying to build a Nativescript application while whitelisting self-signed certificates for android. It use to work I'm pretty sure, but now I'm getting the following Gradle error :
`Platform android successfully added. v3.4.2
Support for Node.js 12.22.6 is not verified. NativeScript CLI might not install or run properly.
Executing before-prepare hook from /home1/local/jenkins/workspace/myApp/hooks/before-prepare/nativescript-dev-typescript.js Found peer TypeScript 2.6.2 Preparing project... Successfully prepared plugin nativescript-angular for android. Successfully prepared plugin nativescript-audio for android. Successfully prepared plugin nativescript-barcodescanner for android. Successfully prepared plugin nativescript-couchbase for android. Successfully prepared plugin nativescript-ripple for android. Successfully prepared plugin nativescript-sqlite for android. Successfully prepared plugin nativescript-theme-core for android. Successfully prepared plugin nativescript-toast for android. Successfully prepared plugin nativescript-toolbox for android. Successfully prepared plugin nativescript-ui-sidedrawer for android. nativescript-vibrate 5.2.0 for android is not compatible with the currently installed framework version 3.4.2. Successfully prepared plugin nativescript-vibrate for android. Successfully prepared plugin tns-core-modules for android. Successfully prepared plugin nativescript-intl for android. Successfully prepared plugin nativescript-permissions for android. Successfully prepared plugin nativescript-ui-core for android. Successfully prepared plugin tns-core-modules-widgets for android. Project successfully prepared (android) Building project... Gradle build...
/home1/local/jenkins/workspace/myApp/platforms/android/app/src/main/res/xml/network_security_config.xml:6:32-50: AAPT: No resource found that matches the given name (at 'src' with value '@raw/a7848a7ee.pem').
/home1/local/jenkins/workspace/myApp/platforms/android/app/build/intermediates/res/merged/F0F1F2F3F4F5/debug/xml/network_security_config.xml:5: error: Error: No resource found that matches the given name (at 'src' with value '@raw/digicert_egs.pem').
/home1/local/jenkins/workspace/myApp/platforms/android/app/build/intermediates/res/merged/F0F1F2F3F4F5/debug/xml/network_security_config.xml:6: error: Error: No resource found that matches the given name (at 'src' with value '@raw/a7848a7ee.pem').
FAILURE: Build failed with an exception.
nativescript version : 3.4.2 node version : 12.7.7
my network_security_config.xml file (in myApp/app/App_Resources/Android/res/xml/..) : `<?xml version="1.0" encoding="utf-8"?>