LibGDX Gradle Slow

Hi all,

Long time no see :p.

Anyway, I am using Java + LibGDX for my graded project this year at college and having a very bad time getting gradle setup.

I managed to eventually get the android SDK’s to install properly on a different drive from Eclipse (due to SSD space), I finally managed to get the setup from libgdx work with Java 7, it was freaking out before. Now I am trying to import the damn project and it keeps hanging on the build model process while it downloads dependencies, it has been stuck on gradle-2.4-all.zip for almost 20 minutes now with no signs of the bar moving.

Any idea what I can do to resolve this issues? Can I pre-download the dependency before hand and point the import to it? If it is basically timing out when trying to download, is there a way I can just skip the whole gradle integration?

UPDATE: Using 4G on phone, still not downloading. So not a network issue

Maybe it’s an issue on their end? That’s really slow and shouldn’t be happening, never takes that long for me and I use Gradle frequently.

I sure hope so, 2 hours later and I still haven’t even touched a line of code and I am almost at the point of putting my first through the screen…lol.

So I went to sleep, woke up and now it seems to be ok.

However, I require help because I just can’t get anything to work that involves gradle first time and it’s really putting me off even remotely doing anything.

So firstly:

- Any Gradle project I try to import can’t find android SDK
Any project I try to import can not find the android SDK, despite it being set as a home variable. The only way I can get around it is my editing the local.properties file of any project before importing it. Is there some syntax I need to add to the home variable? Never had this problem before.

- Never, ever, have I managed to import or get the Facebook SDK working
I just can’t ever get it working, error after error, hour after hour of working through one to another. I can’t simply download it and import it has Gradle project, then link it as library to my given project.

I actually need the Facebook SDK as require some sort of social extension, a simple chat does not count. Rather than having to code a server, a friend system and a chat system it should:stuck_out_tongue: be easier to use Facebook.

So right now, the Facebook import process is throwing me this error:

http://s26.postimg.org/akbtzu9u1/missing_project.png

My limited knowledge tells me that the gradle.build file is trying to compile something that simply does not exist? But I can’t find anything related to it.

P.S How badly do I need to learn Gradle in order to just do basic project setup and integration?

- Every project I make demands latest android API
No idea why it is doing this, but when I manually imported Facebook without Gradle (which never worked btw, tons of errors beyond my fixing ability), it refused to use any version of Java below 7 and only allowed me to use API 23. Or it would throw an error about not being able to find required android classes.

LibGDX projects are doing the same, can’t change it from API 23, even if I specify the target to 15, with a min of 14 and a max of 22. Freaks out and refuses to launch, only gives me an error saying Java 7 needs at least kitkat 4.4 to run, if I change to Java 6 it starts spaffing about not being compatible with any android api lol.

Lost and confused, worried and feel utterly stupid.