"不幸的是,我的LibGDX游戏已经停止了#34;出现在genymotion模拟器上

时间:2014-12-31 18:51:06

标签: java android libgdx emulation genymotion

libgdx上的游戏安装在模拟器中,但随后出现错误。游戏适用于我真正的nexus 4设备但不适用于模拟器。有没有什么办法解决这一问题?代码在下面,log cat在代码下面。

package com.Redwanur.AndroidGame;

import java.io.IOException;

import com.Redwanur.Screens.MainMenu;
import com.Redwanur.Screens.PlayScreen;
import com.badlogic.gdx.Game;


public class AndroidGame extends Game {

Game game;

public void create() {      
    game = this;
    setScreen(new MainMenu(game));

}

public void dispose() {
    try {
        Score score = PlayScreen.getScore();
        score.saveScore(score.getHighscore());  
        System.out.print("saving end");
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }


}

@Override
public void render() {          
    super.render();

}

@Override
public void resize(int width, int height) {
}

@Override
public void pause() {
}

@Override
public void resume() {
}
}


12-31 18:37:36.482: D/dalvikvm(1204): Trying to load lib /data/app-lib/com.Redwanur.AndroidGame-2/libgdx.so 0xa5095408

12-31 18:37:37.238: A/libc(1204): Fatal signal 11 (SIGSEGV) at 0x000000b4 (code=1), thread 1204 (nur.AndroidGame)

12-31 18:37:41.342: D/dalvikvm(1225): Trying to load lib /data/app-lib/com.Redwanur.AndroidGame-2/libgdx.so 0xa5096298

12-31 18:37:41.522: A/libc(1225): Fatal signal 11 (SIGSEGV) at 0x000000b4 (code=1), thread 1225 (nur.AndroidGame)

12-31 18:46:18.978: D/dalvikvm(1272): Trying to load lib /data/app-lib/com.Redwanur.AndroidGame-2/libgdx.so 0xa5097128

12-31 18:46:19.786: A/libc(1272): Fatal signal 11 (SIGSEGV) at 0x000000b4 (code=1), thread 1272 (nur.AndroidGame)

0 个答案:

没有答案