How to get LibGDX to work on an Eclipse project to work on AIDE (Android IDE app)

I am trying to start a libgdx gradle project to work on AIDE. AIDE is an Android app that acts as an IDE. It does not seem to work, since buildconfig.java does not have a generated package name. Does anyone have a workaround?

+6
source share
4 answers

Ok, I have a compilation of my project. What I did was ...

  • Created a new LibGDX project under AIDE.
  • Left all the folder names in the form in which they were. i.e. gdx-game, gdx-game-android.
  • Using adb, I moved all my files to the appropriate folders. e.g. core = gdx-game, android = gdx-game-android
  • I also had to copy to .classpath from another working LibGDX application that I created earlier in AIDE, since this time there were none.

Et Voila!

At least it works for me.

0
source

AIDE seems to have got a new course on libGDX

0
source

Here is my solution:

The first copy of the core / src folder to the android / src folder Then copy the libs folder from the project to the android folder

The only problem I encountered was the libgdx.jar Aide file, which was an older version. I downloaded the latest version of gdx and copied the jar files to the libs folder.

0
source

@thhVictor, "It doesn't seem to work because buildconfig.java does not have a package name generated"

This is because AIDE is trying to consider a regular java project (LibGdx project called "core") as an Android project. You can check it yourself by going to core / directory and see that AIDE shows the option “open this Android App project” instead of “Open this Java project”. After opening and clicking "run" you will see your error

You have 2 options:

Both must do things manually. But I prefer to use gradle because it is a modern thing, and therefore I hope that AIDE developers will support regular java projects that are gradle based

0
source

Source: https://habr.com/ru/post/981481/


All Articles