У меня странная проблема с LibGDX, когда я хочу запустить приложение для Android.Я запускаю его на Samsung Galaxy SII.
Вот основная часть
package com.android.app;
import com.badlogic.gdx.Game;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.g2d.TextureAtlas;
public class App extends Game{
private static TextureAtlas atlas;
@Override
public void create() {
new Texture(Gdx.files.internal("assets/textures1.png"));
}
}
Вот часть Android
package com.android.app;
import com.badlogic.gdx.backends.android.AndroidApplication;
public class AndroidApp extends AndroidApplication {
public void onCreate (android.os.Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
initialize(new App(), true);
//It crasher even if OpenGL-ES 2.0 is not used
}
}
Я получу эту ошибку
OpenGL 2.0 не используется
Thread [<12> GLThread] (Suspended (exception GdxRuntimeException))
GLSurfaceViewCupcake$GLThread.run() line: 650
Используется OpenGL 2.0
Thread [<9> GLThread 10] (Suspended (exception GdxRuntimeException))
GLSurfaceView$GLThread.run() line: 1142
Спасибо за вашу помощь