Closed gunhaxxor closed 5 years ago
Since you are using the android
XML namespace, did you declare it in the config.xml
for the XML parser to reference?
For example, see the example project's config.xml
FYI cordova-android
deploys the project config.xml
to platforms\android\app\src\main\res\xml\config.xml
in order to make the configuration available to the native Android layer.
Thanks for the swift answer. It seems like that indeed was the problem.
I'm submitting a ... (check one with "x"):
Bug report
Current behavior:
I'm installing this plugin using the command
ionic cordova plugin add cordova-custom-config
I'm adding the following toconfig.xml
inside the<platform name="android">
tag:The plugin adds the permission tag to
AndroidManifest.xml
as expected. But, it also adds the following to the fileplatforms\android\app\src\main\res\xml\config.xml
:This results in the following build error when running
ionic cordova run android --device
:Expected behavior:
I expect that the
custom-config-file
tag doesn't get added to theconfig.xml
inplatforms\android\app\src\main\res\xml\
Environment information
Cordova CLI version: 8.0.0
Cordova platform version: Android 7.0.0
Plugins & versions installed in project (including this plugin):
cordova-custom-config 5.0.2 "cordova-custom-config"
cordova-plugin-android-permissions 1.0.0 "Permissions"
cordova-plugin-ble-central 1.2.2 "BLE"
cordova-plugin-camera 4.0.3 "Camera"
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-ionic-keyboard 2.1.2 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 1.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
cordova.plugins.diagnostic 4.0.10 "Diagnostic"
Dev machine OS and version: Windows 10 Version 1803
Android build issue:
node -v
ls platforms/android/.gradle
android:targetSdkVersion
inAndroidManifest.xml
sdkmanager --list | sed -e '/Available Packages/q'
iOS build issue: