Sharing hot code in Android Studio using libgdx

I am using Android Studio (IntelliJ) to program Android applications and am encountering a problem with exchanging hot code and libgdx. When I launch the desktop application in demo mode, everything works fine. If I try to change a little (for example, the color of an element), nothing is updated in the application. Even if I select Run-> Reload changes changes, the new gradle build starts up (takes a lot of time) and then says that it cannot find any changes.

I imported the same example application in eclipse. There, I can just change something in the code, and it immediately appears in the running application.

Anyone else having this problem? Why is this not possible in IntelliJ?

+6
source share
2 answers

Unfortunately, hot-swappable debugging does not work when using the Gradle pattern.

0
source

It is actually possible, as indicated here , you need to disable the Android support plugin if you want the open source swap to work with Gradle and libGDX.

0
source

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


All Articles