You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "GitToTheHub (via GitHub)" <gi...@apache.org> on 2025/11/07 21:20:47 UTC

[I] Cannot build Android, Gradle moved to GitHub [cordova-android]

GitToTheHub opened a new issue, #1863:
URL: https://github.com/apache/cordova-android/issues/1863

   # Bug Report
   
   ## Problem
   
   I cannot build with cordova-android anymore. I get these error messages:
   
   ```bash
   Checking Java JDK and Android SDK versions
   ANDROID_HOME=/Users/manuelbeck/Library/Android/sdk (recommended setting)
   ANDROID_SDK_ROOT=undefined (DEPRECATED)
   Using Android SDK: /Users/manuelbeck/Library/Android/sdk
   > Task :wrapper FAILED
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Execution failed for task ':wrapper'.
   > Test of distribution url https://services.gradle.org/distributions/gradle-8.13-bin.zip failed. Please check the values set with --gradle-distribution-url and --gradle-version.
   
   * Try:
   > Run with --stacktrace option to get the stack trace.
   > Run with --info or --debug option to get more log output.
   > Run with --scan to get full insights.
   > Get more help at https://help.gradle.org.
   
   BUILD FAILED in 4s
   1 actionable task: 1 executed
   undefined
   Command failed with exit code 1: gradle -p /Users/manuelbeck/Projekte/Cordova/notification-test/platforms/android/tools wrapper --gradle-version 8.13
   ```
   
   When I check the url of `https://services.gradle.org/distributions/gradle-8.13-bin.zip` by
   
   ```bash
   curl -I https://services.gradle.org/distributions/gradle-8.13-bin.zip
   ```
   
   I get a ` Temporary Redirect` to GitHub:
   
   ```bash
   HTTP/1.1 307 Temporary Redirect
   Date: Fri, 07 Nov 2025 21:03:41 GMT
   Content-Type: text/html
   Content-Length: 169
   Connection: keep-alive
   Cache-Control: private, max-age=0, no-store, no-cache, must-revalidate, post-check=0, pre-check=0
   Expires: Thu, 01 Jan 1970 00:00:01 GMT
   Location: https://github.com/gradle/gradle-distributions/releases/download/v8.13.0/gradle-8.13-bin.zip
   Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
   Server: cloudflare
   CF-RAY: 99afc75dcc84e515-TXL
   ```
   
   Is here something wrong in Cordova not handling the redirect correct?
   
   ### What is expected to happen?
   
   The build should be successful
   
   ### What does actually happen?
   
   The build fails
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   I tested a fresh setup:
   
   ```bash
   cordova create android-test
   cd android-test
   cordova platform add android
   cordova build android
   ```
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   - macOS 26.1
   
   
   ### Version information
   <!--
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   - cordova-android 14.0.1
   - cordova 12.0.0 (cordova-lib@12.0.2)
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] Cannot build Android, Gradle moved to GitHub [cordova-android]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #1863:
URL: https://github.com/apache/cordova-android/issues/1863#issuecomment-3505189185

   > Is Cordova actually responsible for fetching the gradle distribution, or is it gradle itself doing that? I don't see anywhere in our code that we're doing anything with the `distributionUrl`
   
   Gradle downloads/installs the wrapper via the `gradle wrapper` task.
   
   We also don't produce the distribution url ourselves. We do accept a distribution url as a config argument but default path is to specify a version via (`--gradle-version`), and gradle builds up the distribution url itself.
   
   Given they are using a temporary redirect, maybe gradle is just doing maintenance on their own server?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] Cannot build Android, Gradle moved to GitHub [cordova-android]

Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub closed issue #1863: Cannot build Android, Gradle moved to GitHub
URL: https://github.com/apache/cordova-android/issues/1863


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] Cannot build Android, Gradle moved to GitHub [cordova-android]

Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub commented on issue #1863:
URL: https://github.com/apache/cordova-android/issues/1863#issuecomment-3505255111

   Thanks for your responses. It was due to connecting with the mobile hotspot of my iPhone. When I connect with a normal WiFi it works. I don't know, whats the problem with my hotspot. Everything else works with it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] Cannot build Android, Gradle moved to GitHub [cordova-android]

Posted by "dpogue (via GitHub)" <gi...@apache.org>.
dpogue commented on issue #1863:
URL: https://github.com/apache/cordova-android/issues/1863#issuecomment-3505079494

   Is Cordova actually responsible for fetching the gradle distribution, or is it gradle itself doing that? I don't see anywhere in our code that we're doing anything with the `distributionUrl`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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


Re: [I] Cannot build Android, Gradle moved to GitHub [cordova-android]

Posted by "GitToTheHub (via GitHub)" <gi...@apache.org>.
GitToTheHub commented on issue #1863:
URL: https://github.com/apache/cordova-android/issues/1863#issuecomment-3505307912

   Now I have the root cause. It was because of my phone provider. The german provider `Congstar` produced the error. With a different provider `sim24` it worked again. I can't believe that ..


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


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