如果我运行 Descktop 版本,但当我使用 FALTAL EXCEPTION GLTHREAD java.lang.NoSuchMethodError: com.badlogic.gdx.scenes.scene2d.ui.Label 运行 android 版本时,该项目运行良好。
private void buildElements()
{
// ---------------------------------------------------------------
// Background.
// ---------------------------------------------------------------
//Image image = new Image(logo, Scaling.none);
//image.width = width;
//image.height = height;
// ---------------------------------------------------------------
// Labels
// ---------------------------------------------------------------
try{
titleLabel =new Label("DEMO", "large-font", Color.YELLOW, skin);
poweredByLabel =new Label("DEMO", "large-font", Color.YELLOW, skin);
}catch (Exception e) {
System.out.println(TAG + " ( ) " + e.getMessage());
}
table.pack();
addActor(titleLabel );
}
似乎是当涉及到 titleLabel.... 但为什么呢?
请帮忙!!