Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-12819

Gradle failure, could not determine which tasks to execute.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • cordova@7.0.0
    • None
    • None

    Description

      Following suggestion from Sujan12 I am opening this issue. As also described in this post of the Ionic Forum, Cordova throws a Gradle error when building Android.

      Here is the error message:

      > ionic cordova run android
      Running app-scripts build: --address 0.0.0.0 --port 8100 --p 8100 --livereload-port 35729 --r 35729 --iscordovaserve --externalIpRequired --nobrowser
      
      [22:04:17]  build dev started ... 
      [22:04:17]  clean started ... 
      [22:04:18]  clean finished in 6 ms 
      [22:04:18]  copy started ... 
      [22:04:18]  transpile started ... 
      [22:04:23]  transpile finished in 5.49 s 
      [22:04:23]  preprocess started ... 
      [22:04:23]  deeplinks started ... 
      [22:04:23]  deeplinks finished in 242 ms 
      [22:04:23]  preprocess finished in 243 ms 
      [22:04:23]  webpack started ... 
      [22:04:23]  copy finished in 5.92 s 
      [22:04:39]  webpack finished in 15.89 s 
      [22:04:39]  sass started ... 
      [22:04:40]  sass finished in 1.14 s 
      [22:04:40]  postprocess started ... 
      [22:04:40]  postprocess finished in 37 ms 
      [22:04:40]  lint started ... 
      [22:04:40]  build dev finished in 22.88 s 
      > cordova run android
      ANDROID_HOME=/home/hadrien-toma/dev/android
      JAVA_HOME=/usr/local/java/jdk1.8.0_91
      
      FAILURE: Could not determine which tasks to execute.
      
      * What went wrong:
      Task 'wrapper' not found in root project 'android'.
      
      * Try:
      Run gradle tasks to get a list of available tasks.
      
      BUILD FAILED
      
      Total time: 3.762 secs
      Error: /usr/share/gradle/bin/gradle: Command failed with exit code 1
      
      
      [ERROR] Cordova encountered an error.
              You may get more insight by running the Cordova command above directly.
              
      [ERROR] An error occurred while running cordova run android (exit code 1).
              
      
      [1]    31612 exit 1     ionic cordova run android
      

      Attachments

        Issue Links

          Activity

            People

              filmaj Filip Maj
              hadrien-toma Hadrien TOMA
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated: