Having issues building for iOS and Android

Hello everyone, as the title says, I am having an issue building my Haxe application for iOS and Android.

I am currently using Lime and OpenFL in my project. It runs perfectly fine testing on my Mac, I use the command lime build ios -simulator -Dsource-header=haxe to build the app for iOS. When I try to run the app in Xcode to run it on an emulator there is an issue with a try-catch statement I use to check for a file.

Using lime build android, it goes through the list of stuff it’s exporting for the build but in the end it gives an error when trying to download Gradle (at the bottom of the thread).

I love the Haxe language and would love to use this for future projects, if anyone has had this issue and/or knows the solution please let me know. Thank you

Exception in thread "main" java.io.IOException: Server returned HTTP response code: 403 for URL: http://services.gradle.org/distributions/gradle-2.10-bin.zip
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1913)
        at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1509)
        at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
        at org.gradle.wrapper.Download.download(Download.java:44)
        at org.gradle.wrapper.Install$1.call(Install.java:61)
        at org.gradle.wrapper.Install$1.call(Install.java:48)
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
        at org.gradle.wrapper.Install.createDist(Install.java:48)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)

You will probably get better support at the OpenFL forum. https://community.openfl.org/

I sometimes get a 403 error on http://services.gradle.org/distributions/gradle-2.10-bin.zip and sometimes it works, so there’s probably some issue on the gradle server.

Guess you’ll have to retry here and there until it works.

Thank you, I will see if I can find any solutions over there