How to add string resources to strings.xml in the Cordova project

When cordova build android is issued, the build.gradle file will be automatically generated.
I want this script to insert a variable into the strings.xml file. I can add resValue to build.gradle OK to accomplish this, but I don’t want to change the automatically generated file.
Is there anyway to achieve this goal?
You can add this string in plugin.xml.


Pick any option...< br />

When cordova build android is issued, the build.gradle file is automatically generated.
I want this script to insert a variable into strings .xml file. I can do this by adding a resValue line to build.gradle, but I don’t want to change that auto-generated file.
Is there anyway to achieve this?

You can add this string in plugin.xml.


Pick any option...

Leave a Comment

Your email address will not be published.