我已經安裝了Eclipse,JDK8,Android SDK和libGDX。當我從gdx_setup.jar生成項目時,我得到了我的桌面和Android項目,當我試圖啓動AndroidLauncher時,我崩潰了。無法解析Lcom/game/test/AndroidLauncher的超類; (3)
這裏是AndroidLauncher的代碼:
package com.game.test;
import android.os.Bundle;
import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.game.test.MainClassOfTestGame;
public class AndroidLauncher extends AndroidApplication {
@Override
protected void onCreate (Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
initialize(new MainClassOfTestGame(), config);
}
}
這裏是logcat的:
03-12 05:08:46.056: W/dalvikvm(2413): Unable to resolve superclass of Lcom/game/test/AndroidLauncher; (3)
03-12 05:08:46.056: W/dalvikvm(2413): Link of class 'Lcom/game/test/AndroidLauncher;' failed
03-12 05:08:46.056: D/AndroidRuntime(2413): Shutting down VM
03-12 05:08:46.056: W/dalvikvm(2413): threadid=1: thread exiting with uncaught exception (group=0xa4d7cb20)
03-12 05:08:46.064: E/AndroidRuntime(2413): FATAL EXCEPTION: main
Android Private Libraries added to the build path. it didn't solve my problem
如果你知道我的問題,請幫助我。
P.S.對不起我的英語不好。
好吧! –