I’m following the documentation on about to add a background color to my icon.
I created colors.xml with content
<code> <?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="background">#742A84</color>
</resources>
</code>
<code> <?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="background">#742A84</color>
</resources>
</code>
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="background">#742A84</color>
</resources>
And saved it in res/values/colors.xml
, then added to config
<code> <resource-file src="res/values/colors.xml" target="app/src/main/res/values/colors.xml" />
</code>
<code> <resource-file src="res/values/colors.xml" target="app/src/main/res/values/colors.xml" />
</code>
<resource-file src="res/values/colors.xml" target="app/src/main/res/values/colors.xml" />
But then when I do cordova build android
, I get
<code>TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ENOENT')
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at C:UsersEricAppDataRoamingnpmnode_modulescordovabincordova:32:22
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
</code>
<code>TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ENOENT')
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at C:UsersEricAppDataRoamingnpmnode_modulescordovabincordova:32:22
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
</code>
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ENOENT')
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at C:UsersEricAppDataRoamingnpmnode_modulescordovabincordova:32:22
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
What am I doing wrong? Or is this another half baked feature of Cordova?