cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Piotrowski (Sujan) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-13643) Cannot build cordova-android@7.0.0, cannot write config.xml
Date Wed, 06 Dec 2017 21:02:00 GMT

    [ https://issues.apache.org/jira/browse/CB-13643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16280905#comment-16280905
] 

Jan Piotrowski (Sujan) commented on CB-13643:
---------------------------------------------

The problem is probably caused by one of these plugin. 
Check them for the necessary changes mentioned in the blog post (config.xml and plugin.xml),
one is probably trying to write into `/res/xml/config.xml` which is not in the same place
any more.
If/when you found it, report an issue for that plugin that it doesn't work with Cordova Android
7.0.0 yet.

> cordova (Cordova CLI) : 6.5.0

Current Cordova CLI is 7.1.0

> Cannot build cordova-android@7.0.0, cannot write 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
>         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 (code=ENOENT):/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml
> 2017-12-06T20:14:32.3306620Z         
> 2017-12-06T20:14:32.3320760Z         Parsing /Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml
failed
> 2017-12-06T20:14:32.3335410Z         Error: ENOENT: no such file or directory, open '/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/res/xml/config.xml'
> 2017-12-06T20:14:32.3357980Z         
> 2017-12-06T20:14:32.4777750Z ##[error]Task failed
> 2017-12-06T20:14:33.0065650Z ##[section]Finishing: Ionic Build Android
> {noformat}
> *Here is the logs of a working build with cordova-android@6.1.0*
> {noformat}
> 2017-12-06T19:58:06.1744220Z ##[section]Starting: Ionic Build Android
> 2017-12-06T19:58:06.1830800Z ==============================================================================
> 2017-12-06T19:58:06.1850210Z Task         : Ionic Command
> 2017-12-06T19:58:06.1867970Z Description  : Run an Ionic CLI command
> 2017-12-06T19:58:06.1886530Z Version      : 1.3.11
> 2017-12-06T19:58:06.1904820Z Author       : Microsoft Corporation
> 2017-12-06T19:58:06.1923340Z Help         : [More Information](http://go.microsoft.com/fwlink/?LinkID=692057)
> 2017-12-06T19:58:06.1941810Z ==============================================================================
> 2017-12-06T19:58:07.1822390Z Module cache at /Users/dtap/.taco_home/node_modules
> 2017-12-06T19:58:08.5834320Z cordova@6.5.0 already installed.
> 2017-12-06T19:58:08.5852170Z Cordova Module Path: /Users/dtap/.taco_home/node_modules/cordova/6.5.0/node_modules/cordova
> 2017-12-06T19:58:08.5870470Z Module cache at /Users/dtap/.taco_home/node_modules
> 2017-12-06T19:58:09.9036830Z ionic@3.12.0 already installed.
> 2017-12-06T19:58:09.9056600Z Ionic Module Path: /Users/dtap/.taco_home/node_modules/ionic/3.12.0/node_modules/ionic
> 2017-12-06T19:58:13.3070070Z [INFO] Running app-scripts build: --prod --platform android
--target cordova
> 2017-12-06T19:58:13.3092880Z        
> 2017-12-06T19:58:13.3110660Z [17:58:13]  build prod started ... 
> 2017-12-06T19:58:13.4925600Z [17:58:13]  clean started ... 
> 2017-12-06T19:58:13.5025490Z [17:58:13]  clean finished in 1 ms 
> 2017-12-06T19:58:13.5044220Z [17:58:13]  copy started ... 
> 2017-12-06T19:58:13.6627480Z [17:58:13]  deeplinks started ... 
> 2017-12-06T19:58:14.0252280Z [17:58:14]  deeplinks finished in 362 ms 
> 2017-12-06T19:58:14.0276320Z [17:58:14]  ngc started ... 
> 2017-12-06T19:58:29.0009860Z [17:58:28]  ngc finished in 14.97 s 
> 2017-12-06T19:58:29.0029410Z [17:58:28]  preprocess started ... 
> 2017-12-06T19:58:29.0047760Z [17:58:29]  preprocess finished in 1 ms 
> 2017-12-06T19:58:29.0065540Z [17:58:29]  webpack started ... 
> 2017-12-06T19:58:30.1558950Z [17:58:30]  copy finished in 16.66 s 
> 2017-12-06T20:00:36.4114030Z [18:00:36]  webpack finished in 127.41 s 
> 2017-12-06T20:00:36.4131920Z [18:00:36]  uglify started ... 
> 2017-12-06T20:00:36.4331600Z [18:00:36]  sass started ... 
> 2017-12-06T20:00:46.1993500Z [18:00:46]  sass finished in 9.77 s 
> 2017-12-06T20:00:46.2045050Z [18:00:46]  cleancss started ... 
> 2017-12-06T20:00:50.3194710Z [18:00:50]  cleancss finished in 4.12 s 
> 2017-12-06T20:01:18.6376100Z [18:01:18]  uglify finished in 42.23 s 
> 2017-12-06T20:01:18.6395790Z [18:01:18]  postprocess started ... 
> 2017-12-06T20:01:18.6615900Z [18:01:18]  postprocess finished in 24 ms 
> 2017-12-06T20:01:18.6626420Z [18:01:18]  lint started ... 
> 2017-12-06T20:01:18.6715960Z [18:01:18]  build prod finished in 185.36 s 
> 2017-12-06T20:01:18.6748050Z > ionic cordova prepare android
> 2017-12-06T20:01:18.8020240Z > cordova prepare android
> 2017-12-06T20:01:20.1906580Z 
> 2017-12-06T20:01:20.1929550Z > cordova build android --release
> 2017-12-06T20:01:22.4392730Z [18:01:22]  lint finished in 3.78 s 
> 2017-12-06T20:01:37.2591850Z ✔ Running command - done!
> 2017-12-06T20:01:37.2603870Z android: copy resource files
> 2017-12-06T20:01:37.2613940Z copying resources/plim_plim.mp3 to platforms/android/res/raw/plim_plim.mp3
> 2017-12-06T20:01:37.2626150Z ANDROID_HOME=/Users/dtap/Library/Developer/Xamarin/android-sdk-macosx
> 2017-12-06T20:01:37.2638510Z JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Home
> 2017-12-06T20:01:37.2651120Z Reading build config file: /Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/build.json
> 2017-12-06T20:01:37.2662560Z Subproject Path: CordovaLib
> 2017-12-06T20:01:37.2673180Z Incremental java compilation is an incubating feature.
> 2017-12-06T20:01:37.2685140Z :preBuild UP-TO-DATE
> 2017-12-06T20:01:37.2698780Z :preReleaseBuild UP-TO-DATE
> 2017-12-06T20:01:37.2710740Z :checkReleaseManifest
> 2017-12-06T20:01:37.2722670Z :CordovaLib:preBuild UP-TO-DATE
> 2017-12-06T20:01:37.2736540Z :CordovaLib:preReleaseBuild UP-TO-DATE
> 2017-12-06T20:01:37.2748620Z :CordovaLib:checkReleaseManifest
> 2017-12-06T20:01:37.2760470Z :CordovaLib:prepareReleaseDependencies
> 2017-12-06T20:01:37.2771760Z :CordovaLib:compileReleaseAidl
> 2017-12-06T20:01:37.2783730Z :CordovaLib:compileReleaseNdk UP-TO-DATE
> 2017-12-06T20:01:37.2795670Z :CordovaLib:compileLint
> 2017-12-06T20:01:37.2807560Z :CordovaLib:copyReleaseLint UP-TO-DATE
> 2017-12-06T20:01:37.2819460Z :CordovaLib:mergeReleaseShaders
> 2017-12-06T20:01:37.2829500Z :CordovaLib:compileReleaseShaders
> 2017-12-06T20:01:37.2839540Z :CordovaLib:generateReleaseAssets
> 2017-12-06T20:01:37.2849570Z :CordovaLib:mergeReleaseAssets
> 2017-12-06T20:01:37.2859770Z :CordovaLib:mergeReleaseProguardFiles
> 2017-12-06T20:01:37.2871780Z :CordovaLib:packageReleaseRenderscript UP-TO-DATE
> 2017-12-06T20:01:37.2883890Z :CordovaLib:compileReleaseRenderscript
> 2017-12-06T20:01:37.2894070Z :CordovaLib:generateReleaseResValues
> 2017-12-06T20:01:37.2904120Z :CordovaLib:generateReleaseResources
> 2017-12-06T20:01:37.2914210Z :CordovaLib:packageReleaseResources
> 2017-12-06T20:01:37.2924260Z :CordovaLib:processReleaseManifest
> 2017-12-06T20:01:37.2934400Z :CordovaLib:generateReleaseBuildConfig
> 2017-12-06T20:01:37.2944530Z :CordovaLib:processReleaseResources
> 2017-12-06T20:01:37.2954580Z :CordovaLib:generateReleaseSources
> 2017-12-06T20:01:37.2964770Z :CordovaLib:incrementalReleaseJavaCompilationSafeguard
> 2017-12-06T20:01:37.2974900Z :CordovaLib:compileReleaseJavaWithJavac
> 2017-12-06T20:01:37.2987560Z :CordovaLib:compileReleaseJavaWithJavac - is not incremental
(e.g. outputs have changed, no previous execution, etc.).
> 2017-12-06T20:01:37.3002070Z :CordovaLib:processReleaseJavaRes UP-TO-DATE
> 2017-12-06T20:01:37.3014050Z :CordovaLib:transformResourcesWithMergeJavaResForRelease
> 2017-12-06T20:01:37.3024220Z :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
> 2017-12-06T20:01:37.3034350Z :CordovaLib:mergeReleaseJniLibFolders
> 2017-12-06T20:01:37.3044860Z :CordovaLib:transformNative_libsWithMergeJniLibsForRelease
> 2017-12-06T20:01:37.3055330Z :CordovaLib:transformNative_libsWithSyncJniLibsForRelease
> 2017-12-06T20:01:37.3065450Z :CordovaLib:bundleRelease
> 2017-12-06T20:01:37.3075530Z :prepareAndroidCordovaLibUnspecifiedReleaseLibrary
> 2017-12-06T20:01:37.3096290Z :preDebugBuild UP-TO-DATE
> 2017-12-06T20:01:37.3110100Z :CordovaLib:preDebugBuild UP-TO-DATE
> 2017-12-06T20:01:37.3122100Z :CordovaLib:checkDebugManifest
> 2017-12-06T20:01:37.3132130Z :CordovaLib:prepareDebugDependencies
> 2017-12-06T20:01:37.3142220Z :CordovaLib:compileDebugAidl
> 2017-12-06T20:01:37.3154150Z :CordovaLib:compileDebugNdk UP-TO-DATE
> 2017-12-06T20:01:37.3167920Z :CordovaLib:copyDebugLint UP-TO-DATE
> 2017-12-06T20:01:37.3180230Z :CordovaLib:mergeDebugShaders
> 2017-12-06T20:01:37.3190280Z :CordovaLib:compileDebugShaders
> 2017-12-06T20:01:37.3200320Z :CordovaLib:generateDebugAssets
> 2017-12-06T20:01:37.3210340Z :CordovaLib:mergeDebugAssets
> 2017-12-06T20:01:37.3220460Z :CordovaLib:mergeDebugProguardFiles
> 2017-12-06T20:01:37.3232500Z :CordovaLib:packageDebugRenderscript UP-TO-DATE
> 2017-12-06T20:01:37.3244570Z :CordovaLib:compileDebugRenderscript
> 2017-12-06T20:01:37.3254640Z :CordovaLib:generateDebugResValues
> 2017-12-06T20:01:37.3264760Z :CordovaLib:generateDebugResources
> 2017-12-06T20:01:37.3274840Z :CordovaLib:packageDebugResources
> 2017-12-06T20:01:37.3284880Z :CordovaLib:processDebugManifest
> 2017-12-06T20:01:37.3294910Z :CordovaLib:generateDebugBuildConfig
> 2017-12-06T20:01:37.3304960Z :CordovaLib:processDebugResources
> 2017-12-06T20:01:37.3315000Z :CordovaLib:generateDebugSources
> 2017-12-06T20:01:37.3325140Z :CordovaLib:incrementalDebugJavaCompilationSafeguard
> 2017-12-06T20:01:37.3335290Z :CordovaLib:compileDebugJavaWithJavac
> 2017-12-06T20:01:37.3347900Z :CordovaLib:compileDebugJavaWithJavac - is not incremental
(e.g. outputs have changed, no previous execution, etc.).
> 2017-12-06T20:01:37.3365310Z :CordovaLib:processDebugJavaRes UP-TO-DATE
> 2017-12-06T20:01:37.3377390Z :CordovaLib:transformResourcesWithMergeJavaResForDebug
> 2017-12-06T20:01:37.3387540Z :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
> 2017-12-06T20:01:37.3397640Z :CordovaLib:mergeDebugJniLibFolders
> 2017-12-06T20:01:37.3408150Z :CordovaLib:transformNative_libsWithMergeJniLibsForDebug
> 2017-12-06T20:01:37.3418280Z :CordovaLib:transformNative_libsWithSyncJniLibsForDebug
> 2017-12-06T20:01:37.3430590Z :CordovaLib:bundleDebug
> 2017-12-06T20:01:37.3442450Z :prepareComAndroidSupportCustomtabs2400Library
> 2017-12-06T20:01:37.3452930Z :prepareComAndroidSupportSupportCompat2600Alpha1Library
> 2017-12-06T20:01:37.3463140Z :prepareComAndroidSupportSupportCoreUi2600Alpha1Library
> 2017-12-06T20:01:37.3473630Z :prepareComAndroidSupportSupportCoreUtils2600Alpha1Library
> 2017-12-06T20:01:37.3483830Z :prepareComAndroidSupportSupportFragment2600Alpha1Library
> 2017-12-06T20:01:37.3497620Z :prepareComAndroidSupportSupportMediaCompat2600Alpha1Library
> 2017-12-06T20:01:37.3515010Z :prepareComAndroidSupportSupportV42600Alpha1Library
> 2017-12-06T20:01:37.3531120Z :prepareComGoogleAndroidGmsPlayServicesBase1104Library
> 2017-12-06T20:01:37.3542400Z :prepareComGoogleAndroidGmsPlayServicesBasement1104Library
> 2017-12-06T20:01:37.3552700Z :prepareComGoogleAndroidGmsPlayServicesGcm1104Library
> 2017-12-06T20:01:37.3563080Z :prepareComGoogleAndroidGmsPlayServicesIid1104Library
> 2017-12-06T20:01:37.3573990Z :prepareComGoogleAndroidGmsPlayServicesLocation1104Library
> 2017-12-06T20:01:37.3584470Z :prepareComGoogleAndroidGmsPlayServicesTasks1104Library
> 2017-12-06T20:01:37.3594560Z :prepareComOnesignalOneSignal357Library
> 2017-12-06T20:01:37.3604570Z :prepareHockeySDK502Library
> 2017-12-06T20:01:37.3615600Z :prepareReleaseDependencies
> 2017-12-06T20:01:37.3625740Z :compileReleaseAidl
> 2017-12-06T20:01:37.3636490Z :compileReleaseRenderscript
> 2017-12-06T20:01:37.3646560Z :generateReleaseBuildConfig
> 2017-12-06T20:01:37.3656550Z :generateReleaseResValues
> 2017-12-06T20:01:37.3666530Z :generateReleaseResources
> 2017-12-06T20:01:37.3676840Z :mergeReleaseResources
> 2017-12-06T20:01:37.3686820Z :processReleaseManifest
> 2017-12-06T20:01:37.3696780Z :processReleaseResources
> 2017-12-06T20:01:37.3706760Z :generateReleaseSources
> 2017-12-06T20:01:37.3716790Z :incrementalReleaseJavaCompilationSafeguard
> 2017-12-06T20:01:37.3726860Z :compileReleaseJavaWithJavac
> 2017-12-06T20:01:37.3739390Z :compileReleaseJavaWithJavac - is not incremental (e.g.
outputs have changed, no previous execution, etc.).
> 2017-12-06T20:01:37.3753620Z :compileReleaseNdk UP-TO-DATE
> 2017-12-06T20:01:37.3765420Z :compileReleaseSources
> 2017-12-06T20:01:37.3775350Z :lintVitalRelease
> 2017-12-06T20:01:37.3785300Z :mergeReleaseShaders
> 2017-12-06T20:01:37.3795240Z :compileReleaseShaders
> 2017-12-06T20:01:37.3805160Z :generateReleaseAssets
> 2017-12-06T20:01:37.3815100Z :mergeReleaseAssets
> 2017-12-06T20:01:37.3825050Z :transformClassesWithDexForRelease
> 2017-12-06T20:01:37.3835060Z :mergeReleaseJniLibFolders
> 2017-12-06T20:01:37.3845070Z :transformNative_libsWithMergeJniLibsForRelease
> 2017-12-06T20:01:37.3856950Z :processReleaseJavaRes UP-TO-DATE
> 2017-12-06T20:01:37.3868810Z :transformResourcesWithMergeJavaResForRelease
> 2017-12-06T20:01:37.3878820Z :validateSigningRelease
> 2017-12-06T20:01:37.3888760Z :packageRelease
> 2017-12-06T20:01:37.3898700Z :assembleRelease
> 2017-12-06T20:01:37.3908650Z :cdvBuildRelease
> 2017-12-06T20:01:37.3913670Z 
> 2017-12-06T20:01:37.3923570Z BUILD SUCCESSFUL
> 2017-12-06T20:01:37.3928590Z 
> 2017-12-06T20:01:37.3938550Z Total time: 12.297 secs
> 2017-12-06T20:01:37.3948540Z Built the following apk(s): 
> 2017-12-06T20:01:37.3961080Z 	/Users/dtap/tfsagent/_work/r1/a/zip/TvGlobo.Samara.Mobile/platforms/android/build/outputs/apk/android-release.apk
> 2017-12-06T20:01:37.4202710Z ##[section]Finishing: Ionic Build Android
> {noformat}
> I guess that I cannot provide a sample project with this problem. 
> The code artifact is the same for this two tries. On time of build, I aways remove platform
and add again. When building with 6.1.0, all works. 6.5.0 and 7.0.0 fails. 



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


Mime
View raw message