2 Replies Latest reply on Oct 5, 2016 3:15 PM by ethan64333755

    "Error: /project/gradlew" when building Android app

    ethan64333755 Level 1

      Hello all,

      Whenever I submit my app (as of last Thursday 9/29/16) the build fails with this error, "Error: /project/gradlew". It does not matter if this project if this project would build a month ago, and has not been edited since, or if it was changed the night before. I feel like this is a platform bug, but I need help figuring it out.

      Any reason why this would not work, anything I am not seeing. I am expecting to use cli-6.3.0, because that is the default.

       

      Here is my build log:

      Build Date: 2016-10-05 20:01:01 +0000

      --------------------------------------------------------------------------------

      PLUGIN OUTPUT

      --------------------------------------------------------------------------------

      Fetching plugin "cordova-plugin-whitelist" via npm

      Installing "cordova-plugin-whitelist" at "1.3.0" for android

       

        This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

      Fetching plugin "phonegap-plugin-push@1.6.0" via npm

      Installing "phonegap-plugin-push" at "1.6.0" for android

      Fetching plugin "cordova-plugin-device" via npm

      Installing "cordova-plugin-device" at "1.1.3" for android

      --------------------------------------------------------------------------------

      COMPILE OUTPUT

      --------------------------------------------------------------------------------

      Configuration on demand is an incubating feature.

      Incremental java compilation is an incubating feature.

      :preBuild UP-TO-DATE

      :preDebugBuild UP-TO-DATE

      :checkDebugManifest

      :preReleaseBuild UP-TO-DATE

      :CordovaLib:preBuild UP-TO-DATE

      :CordovaLib:preDebugBuild UP-TO-DATE

      :CordovaLib:compileDebugNdk UP-TO-DATE

      :CordovaLib:compileLint

      :CordovaLib:copyDebugLint UP-TO-DATE

      :CordovaLib:mergeDebugProguardFiles

      :CordovaLib:packageDebugRenderscript UP-TO-DATE

      :CordovaLib:checkDebugManifest

      :CordovaLib:prepareDebugDependencies

      :CordovaLib:compileDebugRenderscript

      :CordovaLib:generateDebugResValues

      :CordovaLib:generateDebugResources

      :CordovaLib:packageDebugResources

      :CordovaLib:compileDebugAidl

      :CordovaLib:generateDebugBuildConfig

      :CordovaLib:mergeDebugShaders

      :CordovaLib:compileDebugShaders

      :CordovaLib:generateDebugAssets

      :CordovaLib:mergeDebugAssets

      :CordovaLib:processDebugManifest

      :CordovaLib:processDebugResources

      :CordovaLib:generateDebugSources

      :CordovaLib:incrementalDebugJavaCompilationSafeguard

      :CordovaLib:compileDebugJavaWithJavac

      :CordovaLib:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      :CordovaLib:processDebugJavaRes UP-TO-DATE

      :CordovaLib:transformResourcesWithMergeJavaResForDebug

      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug

      :CordovaLib:mergeDebugJniLibFolders

      :CordovaLib:transformNative_libsWithMergeJniLibsForDebug

      :CordovaLib:transformNative_libsWithSyncJniLibsForDebug

      :CordovaLib:bundleDebug

      :CordovaLib:preReleaseBuild UP-TO-DATE

      :CordovaLib:compileReleaseNdk UP-TO-DATE

      :CordovaLib:copyReleaseLint UP-TO-DATE

      :CordovaLib:mergeReleaseProguardFiles

      :CordovaLib:packageReleaseRenderscript UP-TO-DATE

      :CordovaLib:checkReleaseManifest

      :CordovaLib:prepareReleaseDependencies

      :CordovaLib:compileReleaseRenderscript

      :CordovaLib:generateReleaseResValues

      :CordovaLib:generateReleaseResources

      :CordovaLib:packageReleaseResources

      :CordovaLib:compileReleaseAidl

      :CordovaLib:generateReleaseBuildConfig

      :CordovaLib:mergeReleaseShaders

      :CordovaLib:compileReleaseShaders

      :CordovaLib:generateReleaseAssets

      :CordovaLib:mergeReleaseAssets

      :CordovaLib:processReleaseManifest

      :CordovaLib:processReleaseResources

      :CordovaLib:generateReleaseSources

      :CordovaLib:incrementalReleaseJavaCompilationSafeguard

      :CordovaLib:compileReleaseJavaWithJavac

      :CordovaLib:compileReleaseJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.).

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      :CordovaLib:processReleaseJavaRes UP-TO-DATE

      :CordovaLib:transformResourcesWithMergeJavaResForRelease

      :CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease

      :CordovaLib:mergeReleaseJniLibFolders

      :CordovaLib:transformNative_libsWithMergeJniLibsForRelease

      :CordovaLib:transformNative_libsWithSyncJniLibsForRelease

      :CordovaLib:bundleRelease

      :prepareComAndroidSupportSupportV132340Library

      :prepareComAndroidSupportSupportV42340Library

      :prepareComGoogleAndroidGmsPlayServicesBase940Library

      :prepareComGoogleAndroidGmsPlayServicesBasement940Library

      :prepareComGoogleAndroidGmsPlayServicesGcm940Library

      :prepareComGoogleAndroidGmsPlayServicesIid940Library

      :prepareComGoogleAndroidGmsPlayServicesTasks940Library

      :prepareProjectCordovaLibUnspecifiedDebugLibrary

      :prepareDebugDependencies

      :compileDebugAidl

      :compileDebugRenderscript

      :generateDebugBuildConfig

      :mergeDebugShaders

      :compileDebugShaders

      :generateDebugAssets

      :mergeDebugAssets

      :generateDebugResValues

      :generateDebugResources

      :mergeDebugResources

      :processDebugManifest

      :processDebugResources FAILED

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':processDebugResources'.

      > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/android-sdk/build-tools/24.0.1/aapt'' finished with non-zero exit value 1

       

      * Try:

      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

       

      BUILD FAILED

       

      Total time: 3.288 secs

      Error: /project/gradlew: Command failed with exit code 1 Error output:

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

      Note: Some input files use or override a deprecated API.

      Note: Recompile with -Xlint:deprecation for details.

       

      FAILURE: Build failed with an exception.

       

      * What went wrong:

      Execution failed for task ':processDebugResources'.

      > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/android-sdk/build-tools/24.0.1/aapt'' finished with non-zero exit value 1

       

      * Try:

      Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

        at ChildProcess.whenDone (/project/cordova/node_modules/cordova-common/src/superspawn.js:169:23)

        at emitTwo (events.js:106:13)

        at ChildProcess.emit (events.js:191:7)

        at maybeClose (internal/child_process.js:877:16)

        at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)

       

       

      And here is my config.xml:

      <widget xmlns     = "http://www.w3.org/ns/widgets"

              xmlns:gap = "http://phonegap.com/ns/1.0"

              id        = "com.phonegap.helloworld"

              version   = "1.0.0">

       

          <name>Hello World</name>

       

          <description>

              Hello World sample application that responds to the deviceready event.

          </description>

       

          <author href="http://phonegap.com" email="support@phonegap.com">

              PhoneGap Team

          </author>

       

      <content src="calendar.html"/>

       

      <plugin name="cordova-plugin-whitelist" source="npm" />

       

      <plugin name="phonegap-plugin-push" spec="1.6.0">

          <param name="SENDER_ID" value="244192342021" />

      </plugin>

           

      <plugin name="cordova-plugin-device" source="npm" />

       

      <icon src="icon.png" />

       

        

      <access origin="*" />

      <access origin="https://secure-island-66271.herokuapp.com/calendar/" />

      <platform name="android">

          <preference name="orientation" value="portrait" />

       

          <icon src="icon.png" />

       

      <!-- a preference specific to android only here -->

      </platform>

      <platform name="ios" >

          <preference name="orientation" value="portrait" />

       

       

          <icon src="res/icon/ios/Icon-72.png" width="72" height="72" />

          <icon src="res/icon/ios/Icon-Small-50@2x.png" width="114" height="114" />

          <icon src="res/icon/ios/Icon-72@2x.png" width="144" height="144" />

          <icon src="res/icon/ios/Icon-60@2x.png" width="120" height="120" />

          <icon src="res/icon/ios/Icon-76@2x.png" width="152" height="152" />

          <icon src="res/icon/ios/Icon-76.png" width="76" height="76" />

          <icon src="res/icon/ios/Icon-60@3x.png" width="180" height="180" />

          <icon src="res/icon/ios/icon-83.5@2x.png" width="167" height="167" />

       

      </platform>

      <feature name="Device">

      <param name="android-package"

      value="org.apache.cordova.device.Device"/>

       

      </feature>

      </widget>