Results 1 to 2 of 2

Thread: Could not read script '''cordova.gradle''' as it does not exist.

  1. #1
    Sencha Premium User
    Join Date
    Aug 2015
    Posts
    6

    Default Could not read script '''cordova.gradle''' as it does not exist.

    I have an hybrid sencha touch 2.4 and phonegap app for android and iPhone where I'm using crosswalk. I was using sencha cmd 5.13.61 to build my app but recently I just installed sencha cmd 6.0.0.202, so when I do sencha app build android I get that the build failed because of this: Could not read script '''/Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/CordovaLib/cordova.gradle''' as it does not exist.
    I have no idea about what is this file and in fact it doesn't exist. Please can anyone tell me what is this file for? and how can I fix this error. This is the complete output:

    Miguels-Mac-mini:mobile joseromero$ sencha app build android
    Sencha Cmd v6.0.0.202
    [INF] Processing Build Descriptor : android
    [INF] Loading app json manifest...
    [INF] Writing output to file /Users/joseromero/Documents/SVN/Healthchat/main/webapp/build/temp/production/Healthchat/sencha-compiler/cmd-packages.js
    [INF] writing content to /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/bootstrap.js
    [INF] appending content to /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/bootstrap.js
    [INF] appending content to /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/bootstrap.js
    [INF] appending content to /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/bootstrap.js
    [INF] Appending content to /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/bootstrap.json
    [WRN] C1014: callParent has no target (me.callParent in Ext.dataview.DataView.onAfterRender) -- /Users/joseromero/Documents/SVN/Healthchat/main/webapp/touch/src/dataview/DataView.js:892
    [WRN] C1014: callParent has no target (this.callParent in Ext.Decorator.setDisabled) -- /Users/joseromero/Documents/SVN/Healthchat/main/webapp/touch/src/Decorator.js:157
    [WRN] C1014: callParent has no target (this.callParent in Ext.data.ArrayStore.loadData) -- /Users/joseromero/Documents/SVN/Healthchat/main/webapp/touch/src/data/ArrayStore.js:64
    [WRN] C1014: callParent has no target (this.callParent in Ext.fx.animation.Wipe.getData) -- /Users/joseromero/Documents/SVN/Healthchat/main/webapp/touch/src/fx/animation/Wipe.js:119:7
    [WRN] C1014: callParent has no target (this.callParent in hct.override.RemotingProvider.getUrl) -- /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/app/override/RemotingProvider.js:7:6
    [INF] Writing concatenated output to file /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www/app.js
    [INF] merging 1 input resources into /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www/resources
    [INF] merged 0 resources into /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www/resources
    [INF] merging 28 input resources into /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www
    [INF] merged 0 resources into /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www
    [INF] executing compass using system installed ruby runtime
    identical ../css/app.css
    [INF] Copying page resources to /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www
    [INF] Writing content to /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www/microloader.js
    [INF] Appending content to /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www/microloader.js
    [INF] Building output markup to /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www/index.html
    [INF] Writing content to /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www/index.html
    [INF] [Phonegap] Attempting PhoneGap local build for android
    [INF] [shellscript] [warning] The command `phonegap local <command>` has been DEPRECATED.
    [INF] [shellscript] [warning] The command has been delegated to `phonegap <command>`.
    [INF] [shellscript] [warning] The command `phonegap local <command>` will soon be removed.
    [INF] [shellscript] [warning] phonegap.js support will soon be removed.
    [INF] [shellscript] [warning] please replace '''phonegap.js''' references with '''cordova.js'''
    [INF] [shellscript] [phonegap] adding phonegap.js to the android platform
    [INF] [shellscript] [phonegap] executing '''cordova build android'''...
    [INF] [shellscript] cp: no such file or directory: /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www/res/icon/ios/icon-72.png
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] cp: no such file or directory: /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/www/res/icon/ios/icon-72-2x.png
    [INF] [shellscript]
    [INF] [shellscript] cp: no such file or directory: /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/icon.png
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] Running command: /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/cordova/build
    [INF] [shellscript]
    [INF] [shellscript] ANDROID_HOME=/Users/joseromero/Documents/Development/android-sdk
    [INF] [shellscript]
    [INF] [shellscript] JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home
    [INF] [shellscript]
    [INF] [shellscript] Running: /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/gradlew cdvBuildDebug -b /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/build.gradle -Dorg.gradle.daemon=true
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] FAILURE:
    [INF] [shellscript] Build failed with an exception.
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] * Where:
    [INF] [shellscript]
    [INF] [shellscript] Build file '''/Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/build.gradle''' line: 60
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] * What went wrong:
    [INF] [shellscript]
    [INF] [shellscript] A problem occurred evaluating root project '''android'''.
    [INF] [shellscript]
    [INF] [shellscript] >
    [INF] [shellscript] Could not read script '''/Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/CordovaLib/cordova.gradle''' as it does not exist.
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] * Try:
    [INF] [shellscript]
    [INF] [shellscript] Run with
    [INF] [shellscript] --stacktrace
    [INF] [shellscript] option to get the stack trace. Run with
    [INF] [shellscript] --info
    [INF] [shellscript] or
    [INF] [shellscript] --debug
    [INF] [shellscript] option to get more log output.
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] BUILD FAILED
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] Total time: 1.846 secs
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/cordova/node_modules/q/q.js:126
    [INF] [shellscript] throw e;
    [INF] [shellscript] ^
    [INF] [shellscript] Error code 1 for command: /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/build.gradle,-Dorg.gradle.daemon=true
    [INF] [shellscript]
    [INF] [shellscript] ERROR building one of the platforms: Error: /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/cordova/build: Command failed with exit code 1
    [INF] [shellscript] You may not have the required environment or OS to build this project
    [INF] [shellscript]
    [INF] [shellscript] Error: /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/cordova/build: Command failed with exit code 1
    [INF] [shellscript] at ChildProcess.whenDone (/usr/local/lib/node_modules/phonegap/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
    [INF] [shellscript] at ChildProcess.emit (events.js:110:17)
    [INF] [shellscript] at maybeClose (child_process.js:1015:16)
    [INF] [shellscript] at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
    [INF] [shellscript]
    [ERR] The following error occurred while executing this line:
    /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/.sencha/app/build-impl.xml:435: The following error occurred while executing this line:
    /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/.sencha/app/packager-impl.xml:17: The following error occurred while executing this line:
    /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/.sencha/app/phonegap-impl.xml:109: The following error occurred while executing this line:
    /Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/.sencha/app/phonegap-impl.xml:185: The following error occurred while executing this line:
    jar:file:/Users/joseromero/bin/Sencha/Cmd/6.0.0.202/sencha.jar!/com/sencha/ant/antlib.xml:672: shellscript returned: 1
    [ERR]
    The application was last modified by an older version of Sencha Cmd (5.1.3.61)
    the current is 6.0.0.202.
    Please run "sencha app upgrade" to update to 6.0.0.202.

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    I haven't seen any other reports of this error. With which version of Cordova are you seeing this?

Similar Threads

  1. Sencha with Gradle
    By frankbolviken in forum Sencha Cmd
    Replies: 4
    Last Post: 30 Sep 2014, 12:14 AM
  2. ExtJS5 and Gradle - Playing Together
    By twasink in forum Ext 5: Q&A
    Replies: 5
    Last Post: 11 Aug 2014, 6:18 AM
  3. Gradle with Sencha CMD builds
    By kprmca in forum Sencha Cmd
    Replies: 1
    Last Post: 8 Aug 2014, 3:32 PM
  4. Gradle with Sencha Ext JS application
    By kprmca in forum Ext 5: Q&A
    Replies: 1
    Last Post: 8 Aug 2014, 3:31 PM
  5. Replies: 2
    Last Post: 3 Apr 2014, 10:28 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •