Android Game Crashing at Launch

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Just trying porting my game over to Android and it is currently crashing right on launch everytime. Below is the crash log if anyone can help on what is causing the issue. Thanks!


    FATAL EXCEPTION: main
    Process: com.kumkwat.crace, PID: 12032
    java.lang.RuntimeException: Unable to start activity ComponentInfo{com.kumkwat.crace/com.kumkwat.crace.Main}: java.lang.IllegalArgumentException: Illegal Capacity: -1277
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4172)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4330)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2693)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:230)
    at android.os.Looper.loop(Looper.java:319)
    at android.app.ActivityThread.main(ActivityThread.java:9063)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)
    Caused by: java.lang.IllegalArgumentException: Illegal Capacity: -1277
    at java.util.ArrayList.<init>(ArrayList.java:167)
    at Banks.CImageBank.preLoad(CImageBank.java:247)
    at Application.CRunApp.load(CRunApp.java:693)
    at Runtime.MMFRuntime.onCreate(MMFRuntime.java:781)
    at android.app.Activity.performCreate(Activity.java:9001)
    at android.app.Activity.performCreate(Activity.java:8970)
    at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1456)
    at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4154)
    at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4330)
    at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:103)
    at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:139)
    at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:96)
    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2693)
    at android.os.Handler.dispatchMessage(Handler.java:106)
    at android.os.Looper.loopOnce(Looper.java:230)
    at android.os.Looper.loop(Looper.java:319)
    at android.app.ActivityThread.main(ActivityThread.java:9063)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:588)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1103)

  • What version of Android Studio do you have installed?

    The latest version supported by Fusion in this moment (build 295.10) is Koala.

    What API are you using? API 34?

    In Fusion, you should select API 34 in the app properties, and the minimum Android version should be 5.0.

  • I was selecting API 34 in the app properties, but I do have Android Studio Meerkat. Should I set it back to Koala?

    Of course, install Koala.

    Don't install Meerkat or Ladybug.

    The latest versions of Android Studio are not compatible with Fusion (build 295.10).


    Yves
    April 7, 2025 at 5:33 PM
  • Also, undeclared Alt Values >= Alt Value AA automatically create crashes on Android only. So, if in your events you have something like "add 1 to alt value AA to object A" and that in object A you have not manually added the alt value AA (by pressing the NEW button until you get the alt value AA displayed), the game will crash. It's annoying for debug. I don't know why this only happens on Android...

  • I've done a lot of trial and error to isolate the cause. It seems to be certain Active objects are causing the crashing. What is weird though is I can strip away all Values and Events attached to it the object will still crash the game. I thought maybe it's related to the art, but when I created a new Active object, put the same art in the new object and delete the original object, the game will not crash.

    So there seems to be something going on with these objects that I can't figure out. Would they just be corrupted somehow even if it's not saying so, or is there something else I'm missing.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!