r/libgdx • • Jul 31 '22

In need of help with Eclipse and Android SDK 31.0

Hey guys. Recently I've got back to work on my old project (2018) and want to update it a bit.

Since nothing worked including Eclipse (Show log: null), Gradle (nothing happening) and etc. I simply remade project anew without Android support.

Now I want to test out and update on my phone. Began creating new project... and it asks for 31.0 version of SDK.

I fired up my SDK manager and the max I can get is 29.0

Went to read some stuff online and it turns out Google made a dick move and started to monopolize and push their Android Studio crap.

What are my options? Should I try to create project with older installer or is there a way to get new SDK and link eclipse with it?

Edit: I also have my old Win7 machine. Maybe I should fire it up and develop on it as everything works there.

0 Upvotes

10 comments sorted by

5

u/butterblaster Jul 31 '22

I held off on switching from Eclipse to IntelliJ for a long time, and after I did, all I could do was kick myself for suffering through Eclipse for so long.

1

u/rr_rai Jul 31 '22

Fair enough. From what I understand Android Studio is a fork of IntelliJ?

I checked LibGDX site and it's only advice to use Android Studio, so I guess it's not that easy to switch AS and Intellij.

3

u/butterblaster Jul 31 '22

Android Studio is a fork of IntelliJ, but the stuff that makes it a fork is available as a plugin for IntelliJ, but I think it is usually a release cycle behind Android Studio. Android Studio can be used for pure JVM projects, but lacks the new project wizard for them. So I just keep both installed. You can freely open the same project in either IDE at any time, at least if they are Gradle-based as libGDX projects are.

If you are not using libGDX for Android, there is no reason to use Android Studio instead of IntelliJ.

1

u/rr_rai Aug 01 '22

I see. Thanks!

Will try out IntelliJ as well.

3

u/tenhourguy Jul 31 '22

Your choices for Android development are basically Android Studio or IntelliJ IDEA these days. Old SDKs are an option with Eclipse, though I wouldn't know how to set it up, and that would prevent you from publishing on the Play Store and using newer Android features.

2

u/rr_rai Jul 31 '22

Thanks for the response!

Guess it's time to push that "Download" button then.

2

u/SimpGameDev Aug 01 '22

I am using VS Code for most of the development and AS only for the final touches.

In 2019, Google announced that Android is Kotlin-first,

so it's fair to assume they want to completely abandon Java like they did with eclipse.

For new projects, you might want to consider that.

Kotlin + libgdx is possible, there's even a project tool - gdx-liftoff - for that.

2

u/rr_rai Aug 01 '22

Breath taking. Not in a good way.

I think it will be my last update for my android games. Getting tired to jump through all the hoops every couple of years just to add some optimizations or game modes.

Thanks for sharing!

1

u/rr_rai Aug 04 '22

Small follow up.

Went and installed Android Studio. Downloaded newest SDK. Tried to switch back to eclipse, but it did not work out.

So I switched to AS. Surprisingly it was an easy transition. Transferred my source over a new project and that's it. No VooDoo was required (as eclipse would have been a full on torture mode).

Now I face new problems, but overall, question is solved.

2

u/Temporary_Jacket7750 May 29 '24

I have a couple of legacy android apps in Eclipse that I'm trying to update tried AS and gradle is really bad for this and the worst thing is that the messages r completely misleading,it compiles every time u open etc. ... Was trying to see if I can still use eclipse and manually generate the aab somebody said cannot update to api31 ... Bummer