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![](/plugins/Uploader/design/images/file.png)
rar
Comments
Likes: MoKaLux, koeosstudio
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
Likes: koeosstudio
You guys are genius as always! Thank you
Likes: MoKaLux, SinisterSoft