Quick Links: Download Gideros Studio | Gideros Documentation | Gideros community chat | DONATE
Run flawlessly in emulator but apk instantly crashes — Gideros Forum

Run flawlessly in emulator but apk instantly crashes

Good day guys!

I am building a simple word game. I tested in emulator, runs flawlessly. Compiled to apk, no error. But opening the apk will instantly crash the app. I don't have a hint on what causing the issue. I will attach my project for your review.
Thanks!
rar
rar
word.rar
512K
word.rar 511.6K

Comments

  • hgy29hgy29 Maintainer
    Accepted Answer
    Wild guess: either a case mismatch in file names, or a missing plug-in…
    +1 -1 (+2 / -0 )Share on Facebook
  • MoKaLuxMoKaLux Member
    edited October 2022 Accepted Answer
    As hgy29 mentionned: it is a case mismatch :)

    You can debug your apk in Android Studio via usb.
    Android Studio debug log:
    2022-10-14 00:47:46.587 27700-27700/? E/DeXUtil: DesktopModeManager is null, so it can't be decided.
    2022-10-14 00:47:46.589 27667-27695/? E/AndroidRuntime: FATAL EXCEPTION: GLThread 4520
    Process: com.test.word, PID: 27667
    com.giderosmobile.android.player.LuaException: fonts/jetBrainsMono.ttf: No such file or directory.
    stack traceback:
    [string "scenes/plscene.lua"]:42: in function <[string "scenes/plscene.lua"]:1>
    at LUA.string_scenesplscenelua1(string_scenesplscene.lua:42)

    Your lua code:
    local wordDisplayFont = TTFont.new('fonts/jetBrainsMono.ttf', 100, true, 1)

    You forgot the uppercase, it should be JetBrainsMono. I tested and it works on my android 10.

    Tip: what I usually do is right click the asset and choose "Insert into Document", I think you can do this too in VSCode.

    PS: I like your app <3

    Likes: koeosstudio

    my growING GIDEROS github repositories: https://github.com/mokalux?tab=repositories
    +1 -1 (+1 / -0 )Share on Facebook



  • You guys are genius as always! Thank you :wink:
    +1 -1 (+2 / -0 )Share on Facebook
Sign In or Register to comment.