【问题标题】:How can I get the traceback of a crash in Android Studio?如何在 Android Studio 中获取崩溃的回溯?
【发布时间】:2023-03-05 08:32:02
【问题描述】:

当我的游戏(使用 LibGDX 编写)在手机或虚拟设备中崩溃时,我收到错误消息:at com.firstgame.game.firstGame.render(firstGame.java:20)

这会将我带到代码的第 20 行

public void render() {
    this.render(); // important!
}

方法是。有什么办法可以追溯吗?

【问题讨论】:

    标签: java android android-studio libgdx


    【解决方案1】:

    我不知道这是否可行,但你可以试试这个

    public void render() {
        try {
            this.render();
        } catch(IOException e) {
            e.printStackTrace();
        }
    }
    

    【讨论】:

      猜你喜欢
      • 2015-04-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-04-08
      • 2011-12-28
      • 1970-01-01
      • 2020-01-31
      相关资源
      最近更新 更多