[libgdx] [GooglePlay] [Gradle] How to add Google Plays API in gradle build?

[libgdx] + [GooglePlay] + [Gradle] How to add Google Plays API in gradle build?

Hi Guys!
I followed the tutorial described here :

I had to use eclipse though!
And now, my project wont run on netbeans!

So, how can i add BaseGameUtils and GooglePlayApi on gradle?

It says here :

[quote]If you’re using another build system…

If you are using your own build system, here is a summary of what you must do:

Configure it to treat google-play-services_lib and BaseGameUtils as library projects, which means that not only their code but also their resources will also get added to the final build.
Make sure TrivialQuest depends on BaseGameUtils
Make sure BaseGameUtils depends on google-play-services_lib.
Make sure the build system is signing the APK with the right certificate (the one whose fingerprint you provided in the Developer Console when creating your client ID)
[/quote]
And Step 2 of this : http://fortheloss.org/tutorial-set-up-google-services-with-libgdx/

[quote]First, import the Google Play Services SDK. With Eclipse open to your current workspace, go to File > Import > Android > Existing Android Code Into Workspace.
Browse to where the Google Play Services SDK is saved (when downloaded through Eclipse ADT, it is location at [Android SDK Location]\sdk\extras\google\google_play_services and select it. Before importing, be sure to check Copy projects into workspace.
[/quote]
Those two steps… How can i convert them to gradle ?

Just set it as a reference as usual. You don’t need to use gradle.

Add the jar to project, then add it to build path.

What you mean? :open_mouth:
I dont think netbeans has those options as in eclipse

Learn to Google seriously.

The very first result on Google

Also netbeans is shit, use something better (anything).

Hahaha. Are you mad in real life and come to forum to vent?

Anyway. I did google and followed some tutorials after i replied here. And I ended up in an error in build.gradle when trying to compile the project.
Also, the IDE is my choice. i like NB , period. If you want to start a flame IDE war, start your topic and i will gladly join you.

By the way, im working on a proper solution with dermetfan, when we figure it out i will post the solution to help others.

No not really, I just hate it when people ask a question before trying all solutions.

Did you Google that error? What was it?

Use what you want of course, I used netbeans for a month (only because it was on the college pcs at the time) and then I went to eclipse, won’t ever go back. You said it yourself, it works fine with eclipse but not netbeans, that won’t be the first time you will write those words :p.

The error was gradle.build has failed to compile project BaseGameUtils.
But i as i said, once the problem is solved, i will post the solution.

THANKS FOR YOUR HELP