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

Fails to install #3

Open
OlofT opened this issue May 11, 2021 · 6 comments
Open

Fails to install #3

OlofT opened this issue May 11, 2021 · 6 comments

Comments

@OlofT
Copy link

OlofT commented May 11, 2021

After downloading and running the first command, it fails. Downloading from the browser works.

$ swift-install/setup.sh
Downloading http://services.gradle.org/distributions/gradle-4.1-all.zip

Exception in thread "main" java.lang.RuntimeException: java.io.IOException: Server returned HTTP response code: 403 for URL: http://services.gradle.org/distributions/gradle-4.1-all.zip
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:78)
at org.gradle.wrapper.Install.createDist(Install.java:47)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:48)
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://services.gradle.org/distributions/gradle-4.1-all.zip
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1985)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1577)
at org.gradle.wrapper.Download.downloadInternal(Download.java:59)
at org.gradle.wrapper.Download.download(Download.java:45)
at org.gradle.wrapper.Install$1.call(Install.java:60)
at org.gradle.wrapper.Install$1.call(Install.java:47)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
... 3 more


This project looks really interesting and I would like to try it out!

@johnno1962
Copy link
Member

Hi, What version of android toolchain are you using? Is this where the setup.sh comes from?

@OlofT
Copy link
Author

OlofT commented May 11, 2021

I'm using your supplied version, http://johnholdsworth.com/android_toolchain.tgz
And yes, that's where setup.sh comes from

@johnno1962
Copy link
Member

Looks like that version of gradle has been deprecated. My release is some 5 years old now. You should fare better with the "Readdle" Swift toolchains which are more up to date: https://github.com/readdle/swift-android-toolchain

@OlofT
Copy link
Author

OlofT commented May 11, 2021

Yes, 5 years is a bit too old I guess - but their tools have other problems and are also not working. I have the toolchain compiled for Android and now I'm looking for a clean way to wrap it all together. It seems this should be doable, and people like you have done it, but there are a bit too many "moving parts". Also not familiar with the Gradle build system.

Could you point me in the right direction?

@johnno1962
Copy link
Member

If their toolchain has problems, you should raise an issue with them as I'm sure they'd like to know. @zayass, can you help out here?

@OlofT
Copy link
Author

OlofT commented May 11, 2021

Already have! I'm probing all alternatives! =)

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