I am developing a cordova plugin, my plugin code needs xmlns:tools="http://schemas.android.com/tools"
namespace.
So, I added the same in Plugin.xml
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
id="com.sample.cordova"
version="1.0.0">
Now after adding the plugin to any cordova project, i don't see xmlns:tools="http://schemas.android.com/tools"
namespace in Android manifest file.
It is like
<manifest android:hardwareAccelerated="true" android:versionCode="1" android:versionName="0.0.1" package="com.sample.cordova" xmlns:android="http://schemas.android.com/apk/res/android">
As per cordova Plugin Specification it should add xmlns:tools namespace, but it is not happening. Any ideas how to achieve it
Thanks in Advance.
I had the same problem
Try to add in plugin.xml
<edit-config file="AndroidManifest.xml" target="/manifest" mode="merge">
<manifest xmlns:tools="http://schemas.android.com/tools" />
</edit-config>
it works for me.
Details here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With