[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16317378#comment-16317378 ] jcesarmobile commented on CB-13643: --- [~dpa99c] config-file tag is working fine in plugin.xml, at least when using Cordova 8 and cordova-android 7, so plugins shouldn't need an update. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync: could not write to >
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16317205#comment-16317205 ] Joe Bowser commented on CB-13643: - [~dpa99c] Eventually yes. I don't believe the problem is with the cordova plugins, but instead with something in Taco or Ionic that's expecting config.xml to be at the old location. We've tested cordova-plugin-device with the old locations against the new code, and there's code in cordova-android 7.0 that edits config.xml. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files >
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16317072#comment-16317072 ] Dave Alden commented on CB-13643: - [~Sujan12], [~jcesarmobile] just so I've got this straight: does this mean every plugin needs to update its block that defines the for Android? i.e. should this: {code:xml} {code} become this: {code:xml} {code} ??? > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281902#comment-16281902 ] Jan Piotrowski (Sujan) commented on CB-13643: - Location of that folder should only have been changed with cordova-android 7.0.0, not before. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync: could not write to > dest file >
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281893#comment-16281893 ] Marcos Almeida Jr commented on CB-13643: Ah ok, res folder now is under app/src/main. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync: could not write to > dest file >
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281891#comment-16281891 ] Marcos Almeida Jr commented on CB-13643: [~Sujan12] I notice that removing one signal plugin, build succeeds on this test projects, BUT I still cannot see res files at android platform folder res > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync:
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281875#comment-16281875 ] Jan Piotrowski (Sujan) commented on CB-13643: - You should report this to the `onesignal-cordova-plugin` repo then. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 > 2017-12-06T20:14:32.3291570Z cp: copyFileSync: could not write to > dest file >
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281869#comment-16281869 ] Marcos Almeida Jr commented on CB-13643: [~Sujan12] I created a project with cordova create. I'm getting a similar error, but at another file. Here is the test repo: https://github.com/junalmeida/cordova-test {noformat} $ cordova build android Android Studio project detected ANDROID_HOME=D:\android-sdk JAVA_HOME=C:\Program Files\java\jdk1.8.0_131 studio Subproject Path: CordovaLib Subproject Path: app publishNonDefault is deprecated and has no effect anymore. All variants are now published. Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence. java.lang.IllegalStateException: compileSdkVersion is not specified. at com.google.common.base.Preconditions.checkState(Preconditions.java:456) at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:590) at com.android.build.gradle.BasePlugin.lambda$null$3(BasePlugin.java:555) at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:81) at com.android.build.gradle.BasePlugin.lambda$createTasks$4(BasePlugin.java:551) at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:91) at org.gradle.internal.event.BroadcastDispatch$ActionInvocationHandler.dispatch(BroadcastDispatch.java:80) at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:42) at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:230) at org.gradle.internal.event.BroadcastDispatch$SingletonDispatch.dispatch(BroadcastDispatch.java:149) at org.gradle.internal.event.AbstractBroadcastDispatch.dispatch(AbstractBroadcastDispatch.java:58) at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:324) at org.gradle.internal.event.BroadcastDispatch$CompositeDispatch.dispatch(BroadcastDispatch.java:234) at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:140) at org.gradle.internal.event.ListenerBroadcast.dispatch(ListenerBroadcast.java:37) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) at com.sun.proxy.$Proxy28.afterEvaluate(Unknown Source) at org.gradle.configuration.project.LifecycleProjectEvaluator.notifyAfterEvaluate(LifecycleProjectEvaluator.java:75) at org.gradle.configuration.project.LifecycleProjectEvaluator.doConfigure(LifecycleProjectEvaluator.java:69) at org.gradle.configuration.project.LifecycleProjectEvaluator.access$100(LifecycleProjectEvaluator.java:33) at org.gradle.configuration.project.LifecycleProjectEvaluator$ConfigureProject.run(LifecycleProjectEvaluator.java:103) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.configuration.project.LifecycleProjectEvaluator.evaluate(LifecycleProjectEvaluator.java:49) at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:651) at org.gradle.api.internal.project.DefaultProject.evaluate(DefaultProject.java:133) at org.gradle.execution.TaskPathProjectEvaluator.configure(TaskPathProjectEvaluator.java:35) at org.gradle.execution.TaskPathProjectEvaluator.configureHierarchy(TaskPathProjectEvaluator.java:62) at org.gradle.configuration.DefaultBuildConfigurer.configure(DefaultBuildConfigurer.java:38) at org.gradle.initialization.DefaultGradleLauncher$ConfigureBuild.run(DefaultGradleLauncher.java:246) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336) at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328) at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:197) at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:107) at org.gradle.initialization.DefaultGradleLauncher.configureBuild(DefaultGradleLauncher.java:165) at
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281843#comment-16281843 ] Marcos Almeida Jr commented on CB-13643: Other thing I notice is that with 6.1.0, i can see resource files like icons and splash images is being written to android/res folder. With 6.5.0 and 7.0.0 the res folder is not being generated at all. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to > platforms/android/res/raw/plim_plim.mp3 >
[jira] [Commented] (CB-13643) Cannot build: Cannot write /res/xml/config.xml
[ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16281839#comment-16281839 ] Jan Piotrowski (Sujan) commented on CB-13643: - Thanks for the update, this points to totally different problems. Can you please try to recreate the problem with a new project started with `cordova create` and upload the result to a Github repo? Only add the relevant plugins. > Cannot build: Cannot write /res/xml/config.xml > -- > > Key: CB-13643 > URL: https://issues.apache.org/jira/browse/CB-13643 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android >Affects Versions: 7.0.0, 6.5.0 > Environment: Darwin Kernel Version 16.7.0 (osx) >Reporter: Marcos Almeida Jr >Assignee: Joe Bowser >Priority: Blocker > Labels: build > > Same project compiles with no problem with cordova-android@6.1.0 > *When I set it to build using cordova-android@7.0.0 i get the following > error:* > cp: copyFileSync: could not write to dest file > (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml > Seems that the res folder is not being generated. > {noformat} > 2017-12-06T20:12:22.7306300Z ##[section]Starting: Ionic Build Android > 2017-12-06T20:12:22.7357040Z > == > 2017-12-06T20:12:22.7367170Z Task : Ionic Command > 2017-12-06T20:12:22.7379360Z Description : Run an Ionic CLI command > 2017-12-06T20:12:22.7390120Z Version : 1.3.11 > 2017-12-06T20:12:22.7400860Z Author : Microsoft Corporation > 2017-12-06T20:12:22.7411880Z Help : [More > Information](http://go.microsoft.com/fwlink/?LinkID=692057) > 2017-12-06T20:12:22.7423510Z > == > 2017-12-06T20:12:24.1904470Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:24.7130830Z cordova@6.5.0 already installed. > 2017-12-06T20:12:24.7148980Z Cordova Module Path: > /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova > 2017-12-06T20:12:24.7166780Z Module cache at > /Users/dtap/.taco_home/node_modules > 2017-12-06T20:12:25.9630700Z ionic@3.12.0 already installed. > 2017-12-06T20:12:25.9648550Z Ionic Module Path: > /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic > 2017-12-06T20:12:28.7001080Z [INFO] Running app-scripts build: --prod > --platform android --target cordova > 2017-12-06T20:12:28.7023500Z > 2017-12-06T20:12:28.7041760Z [18:12:28] build prod started ... > 2017-12-06T20:12:28.7796910Z [18:12:28] clean started ... > 2017-12-06T20:12:28.7814780Z [18:12:28] clean finished in 1 ms > 2017-12-06T20:12:28.7833010Z [18:12:28] copy started ... > 2017-12-06T20:12:28.8980020Z [18:12:28] deeplinks started ... > 2017-12-06T20:12:29.1374580Z [18:12:29] deeplinks finished in 240 ms > 2017-12-06T20:12:29.1397430Z [18:12:29] ngc started ... > 2017-12-06T20:12:38.1104050Z [18:12:38] ngc finished in 8.97 s > 2017-12-06T20:12:38.1121910Z [18:12:38] preprocess started ... > 2017-12-06T20:12:38.1139910Z [18:12:38] preprocess finished in 1 ms > 2017-12-06T20:12:38.1158400Z [18:12:38] webpack started ... > 2017-12-06T20:12:39.3028600Z [18:12:39] copy finished in 10.52 s > 2017-12-06T20:14:02.4833200Z [18:14:02] webpack finished in 84.37 s > 2017-12-06T20:14:02.4851040Z [18:14:02] uglify started ... > 2017-12-06T20:14:02.5017620Z [18:14:02] sass started ... > 2017-12-06T20:14:07.7085830Z [18:14:07] sass finished in 5.21 s > 2017-12-06T20:14:07.7103690Z [18:14:07] cleancss started ... > 2017-12-06T20:14:10.4118170Z [18:14:10] cleancss finished in 2.70 s > 2017-12-06T20:14:29.9190970Z [18:14:29] uglify finished in 27.43 s > 2017-12-06T20:14:29.9208780Z [18:14:29] postprocess started ... > 2017-12-06T20:14:29.9456540Z [18:14:29] postprocess finished in 26 ms > 2017-12-06T20:14:29.9474240Z [18:14:29] lint started ... > 2017-12-06T20:14:29.9555930Z [18:14:29] build prod finished in 121.25 s > 2017-12-06T20:14:29.9587670Z > ionic cordova prepare android > 2017-12-06T20:14:30.0773410Z > cordova prepare android > 2017-12-06T20:14:30.7694920Z Android Studio project detected > 2017-12-06T20:14:31.2500880Z > 2017-12-06T20:14:31.2524240Z > cordova build android --release > 2017-12-06T20:14:32.3066820Z ✖ Running command - failed! > 2017-12-06T20:14:32.3211570Z [ERROR] An error occurred while running cordova > build android --release (exit code 1): > 2017-12-06T20:14:32.3228570Z > 2017-12-06T20:14:32.3244550Z > 2017-12-06T20:14:32.3259840Z android: copy resource files > 2017-12-06T20:14:32.3275410Z copying resources/plim_plim.mp3 to >