Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to build for Android (maybe certificate issue?) #1093

Open
JGreenlee opened this issue Sep 26, 2024 · 2 comments
Open

Unable to build for Android (maybe certificate issue?) #1093

JGreenlee opened this issue Sep 26, 2024 · 2 comments

Comments

@JGreenlee
Copy link

I have been running into this issue which prevents me from building for Android.

Everything looks normal until:

> 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.7-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 6s
1 actionable task: 1 executed
Command failed with exit code 1: gradle -p /Users/jgreenle/e-mission-phone/platforms/android/tools wrapper --gradle-version 8.7

I can see that the scripts install Gradle 8.10 successfully, but then attempt to download Gradle 8.7 (which fails for me but is successful in the CI)

This leads me to believe 2 things:

  • Gradle 8.10 is not being used, neither on my setup or the CI
  • Something on my machine causes the Gradle 8.7 download to fail (I am guessing certificates)
@shankari
Copy link
Contributor

shankari commented Sep 27, 2024

Gradle 8.10 is not being used, neither on my setup or the CI

This is true. The build should download its own gradle.
I actually removed the gradle install in e-mission/e-mission-phone@399e9e7

But then it turns out that if there is no system gradle, then the build fails so I restored it
e-mission/e-mission-phone@3b6ecd5

Have you pulled the changes for the upgrade and deleted all your existing setup? I remember there was a gradle issue during the upgrade that was fixed by upgrading android. And I had to delete all platforms and plugins after the upgrade.
#1079 (comment) and later

@JGreenlee
Copy link
Author

I am able to reproduce this on a freshly cloned repo, so I don't think it is the issue you described.
I have also tried reinstalling the Android SDK to no avail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants