ajprok opened a new issue, #607:
URL: https://github.com/apache/cordova-cli/issues/607
# Bug Report
Build failing when edit-config tag is added to config.xml, and running
`cordova build`
## Problem
On adding the following to config.xml of a freshly installed cordova project:
```
<platform name="android">
<edit-config file="app/src/main/AndroidManifest.xml" mode="merge"
target="/manifest">
<!-- Add app install location preference - internal or external
storage -->
<manifest android:installLocation="auto" />
</edit-config>
</platform>
```
The following error occurs in CLI:
```
Command failed with exit code 1:
/home/ajit/current-projects/lap/lap-frontend/platforms/android/gradlew
cdvBuildDebug -b
/home/ajit/current-projects/lap/lap-frontend/platforms/android/build.gradle
Error: Command failed with exit code 1:
/home/ajit/current-projects/lap/lap-frontend/platforms/android/gradlew
cdvBuildDebug -b
/home/ajit/current-projects/lap/lap-frontend/platforms/android/build.gradle
at makeError
(/home/ajit/current-projects/lap/lap-frontend/node_modules/execa/lib/error.js:60:11)
at handlePromise
(/home/ajit/current-projects/lap/lap-frontend/node_modules/execa/index.js:118:26)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async ProjectBuilder.build
(/home/ajit/current-projects/lap/lap-frontend/node_modules/cordova-android/lib/builders/ProjectBuilder.js:316:20)
```
This is the error that Android Studio shows on building:
```
ParseError at [row,col]:[17,52]
Message:
http://www.w3.org/TR/1999/REC-xml-names-19990114#AttributePrefixUnbound?manifest&android:installLocation&android
```
**Please note, the AndroidManifest.xml file is updated properly.**
### What is expected to happen?
Should build without any issues
### What does actually happen?
As mentioned in problem section
## Information
<!-- Include all relevant information that might help understand and
reproduce the problem -->
cordova version: 11.1.0
node version: v16.18.0
java version:
```
java 11.0.14 2022-01-18 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.14+8-LTS-263)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.14+8-LTS-263, mixed mode)
```
Please let me know if you require any more information.
### Command or Code
<!-- What command or code is needed to reproduce the problem? -->
cordova build
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you
experiencing the issue? -->
OS: Lubuntu, Platform: Linux, Device: Acer laptop
## Checklist
<!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
- [ x] I searched for existing GitHub issues
- [ x] I updated all Cordova tooling to most recent version
- [ x] I included all the necessary information above
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]