(Live-Build) The Issue with Cycle-Synchronization In (Android) App.

Hello Everyone. I collided with Cycle-Synchronization (on Android).

I read (before) the Corona Live Build Documentation and even had a lot of issues with realising of that, like: to use Live Build, you need to Install the iTunes App, BUT, when I Installed it from Microsoft Store, CoronaLiveServer required me to Install the Bonjour for Live Server. (I’m using Windows 10)

Later, I found out In the Second Topic: → Bonjour needed for Live Server on windows? - #6 by endorphinum

that the latest Versions of iTunes are doesn’t supports Bonjour, so I Installed the more oldest Version Of iTunes from here → Download iTunes 12.4.3 for Windows (64-bit - for older video cards) - Apple Support

(edited) I’m using Solar2D, v2024.3709 → Release Solar2D 2024.3709 · coronalabs/corona · GitHub
In conclusion, I really hope, that, someone knows the solution of my Issue.

Since version 3705 to now, the live build feature has that issue. It might be related to this update (not sure).

My temporary solution is to use 2 versions 3704 (develop) and the latest version for build.

2 Likes

I thought it was a livebuild compatibility issue on Android 14 before.
Just confirming the test case, is it 3704 compared to 3705, where the former works fine on Android 14 (or earlier) and the latter loops and restarts?
Thanks.

1 Like

Unfortunately, but v3704 links com.beust:klaxon:5.0.1. which was removed for Some Reason from Web source, so it returns the error in Output, but this issue was fixed in v3709 (which I using).

For future reference, you can install Bonjour Service by extracting it from the iTunes64Setup.exe, no need to install iTunes.

Last version I found is actually iTunes 12.10.11: iTunes 12.10.11 for Windows (Windows 64 bit) - Apple Support (PH)

As a side note, if you don’t have Bonjour Service installed the Corona Live Server will route you to download Bonjour Print Services, this is not the same package; the Bonjour Service included with iTunes is the one used for zero-configuration networking (also known as Zeroconf).

As far the issue goes, I can confirm the endless app loading loop with versions 3708 and 3709; it restarts after Loading via reflection: plugin.liveBuild.LuaLoader per adb logcat.

1 Like

ill look into live build over the weekend.

2 Likes

So I Installed v3704, and it didn’t solved my Problem, but, when I back to v2024.3709, Live Build stopped Update/Synchronize my App (at all).

image
I use 2 separate versions, normal to build release and 3704 to livebuild.

1 Like

So no way to live build currently for Android? Or what version of solar2d should i use? I’m new to solar2d and wanted to test it on my Android. Thanks.

Edit:

Do you guys think this tutorial is (still) useful? Creating a Corona Native plugin with Android Studio | QWeb Ltd Web & Game Design, Leeds

I see that the common way is to use wifi to build the app but the above tutorial uses Android Studio so as far as I see theres no need for wifi. Anyway I will try that tutorial later to see if it works.

1 Like

The tutorial you’re referencing is for native plugins; this is not relevant to Android Live builds.

You can still build for Android and test it on your device, this is the default build mode via the Simulator.

Android Live builds are used to see changes on your device when editing your Lua code without having to build the APK again.

1 Like

@clang had you time to take a look?

Hi, @pmochocki, I have patched and tested locally, waiting for the next plan. Thanks.

1 Like

@clang thank you - I have found your pull request: Android: temp fix loop restarts by clang-clang-clang · Pull Request #1 · coronalabs/com.coronalabs-plugin.liveBuild · GitHub

After @vlads make the release, I think it’s fixed, tested on 3709.

1 Like