Results 1 to 2 of 2

Thread: Canít build sencha-phonegap app for android (cordova.gradle does not exist)

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

    Default Canít build sencha-phonegap app for android (cordova.gradle does not exist)

    I have an sencha-phonegap app where Iím using Crosswalk too, I was developing it in a Windows PC but now Iím using a Mac and when I try to build my app for android (using sencha app build android), I get that the build failed because of: 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 (cordova.gradle), and in fact it doesnít exist. So please can anyone tell me how could I fix it?


    This is my complete output:


    Miguels-Mac-mini:mobile joseromero$ sencha app build android
    Sencha Cmd v5.1.3.61
    [INF] Processing Build Descriptor : android
    [WRN] Folder should have exactly one .pkg file: /Users/joseromero/bin/Sencha/Cmd/repo/pkgs/.meta/profiles
    [WRN] Folder should have exactly one .pkg file: /Users/joseromero/bin/Sencha/Cmd/repo/pkgs/.meta/profiles
    [WRN] Folder should have exactly one .pkg file: /Users/joseromero/bin/Sencha/Cmd/repo/pkgs/.meta/profiles
    [WRN] Folder should have exactly one .pkg file: /Users/joseromero/bin/Sencha/Cmd/repo/pkgs/.meta/profiles
    [INF] Loading app json manifest...
    [INF] Concatenating 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] 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]
    [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: Build failed with an exception.
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] * Where:
    [INF] [shellscript] Build file '''/Users/joseromero/Documents/SVN/Healthchat/main/webapp/mobile/phonegap/platforms/android/build.gradle''' line: 60
    [INF] [shellscript]
    [INF] [shellscript] * What went wrong:
    [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] * Try:
    [INF] [shellscript] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] BUILD FAILED
    [INF] [shellscript]
    [INF] [shellscript]
    [INF] [shellscript] Total time: 1.689 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/5.1.3.61/sencha.jar!/com/sencha/ant/antlib.xml:668: shellscript returned: 1

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

Similar Threads

  1. Replies: 1
    Last Post: 14 Sep 2015, 10:55 AM
  2. Replies: 1
    Last Post: 30 May 2015, 9:18 AM
  3. Sencha native build vs. Cordova/Phonegap
    By Dumas in forum Sencha Cmd
    Replies: 4
    Last Post: 21 Feb 2014, 2:23 AM
  4. Replies: 6
    Last Post: 18 Apr 2013, 6:41 AM
  5. Can Sencha build tool create a phonegap\cordova app
    By SButts in forum Sencha Touch 2.x: Q&A
    Replies: 2
    Last Post: 14 Jul 2012, 7:22 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
  •