英文:
when I tried to test the game on my device crushed "Unfortunately App name has stopped
问题
我在手机上或任何虚拟设备上启动我的游戏时遇到了问题。我已经将游戏从Buildbox导出为Android源代码,并在没有任何问题的情况下导入到了Eclipse中,然后也顺利将其导出为Android应用程序。但是,当我尝试在我的设备上测试游戏时,出现了“很抱歉,应用程序名称已停止运行”的崩溃。我已经在我的虚拟设备上运行过它,以下是给我的日志记录。
英文:
i have a problem launching my game on my phone or any virtual device, I've exported the game from Buildbox to an android source code and imported into eclipse without any problem and export it to android application also with no problem, when I tried to test the game on my device crushed "Unfortunately App name has stopped", I've run it on my virtual device and those are the logs that gave me.
答案1
得分: 0
通常在移动设备上测试应用程序时,如果游戏崩溃,您需要优化您的图集。
通常,您可能会遇到图片和动画过大、过重,导致游戏崩溃的问题。
为了优化图集,请转到“视图” > “图集”
您的图集应该看起来像这样。一个图集中应该存在很多图片。您需要检查所有的图集,如果每个图集只有 4 或 5 张图片,您需要重新调整这些特定动画的尺寸,并重新将它们放入图集中。
在您完成所有这些设计工作并在 Buildbox 中替换它们后(您需要删除所有旧的图片),然后进入图集,优化并重建图集。
在执行所有这些操作之前,请务必备份。
然后导出并构建另一个应用程序,您应该可以顺利运行了。
选项 2:
如果问题仍然存在,检查您的场景,因为它们可能过长,一次性使用了太多内存,这可能会导致游戏崩溃。
英文:
Usually when a game crashes when testing the app on a mobile device you need to optimize your atlas.
Usually you are having problems with the images and animations that are too big and too heavy they make the game crash.
In order to optimize the atlas go to View > Atlases
You atlases should look like this one. So many images should exist in 1 atlas. You need to check all your atlases and if you have only 4 or 5 images per atlas you need to redo the sizes for those specific animations and reface them in the atlas.
After you do all that design work and replace them in Buildbox (you need to erase all the old images that you had) and then you go to the atlases and optimize and rebuild the atlases.
Allways keep a backup before doing all of this.
Then export and build another application and you should be good to go.
Option 2:
If it's still not working, check you scenes as they may be too long and may be using too much memory at once and that should be making the game crash.
专注分享java语言的经验与见解,让所有开发者获益!
评论