无法解析Lcom / game / test / AndroidLauncher的超类; (3)

时间:2016-03-12 10:22:44

标签: java android eclipse libgdx

我已经安装了Eclipse,JDK8,Android SDK和libGDX。当我从gdx_setup.jar生成项目时,我得到了桌面和Android的项目,当我尝试启动AndroidLauncher时,我崩溃了。

以下是AndroidLauncher的代码:

select a.*, count(b.user_id) as attempts from survey a 
left join survey_attempt b on a.survey_id = b.attempt_surveyid 
where a.survey_status != 0 
order by survey_order asc 
GROUP by a.survey_id

这里是LogCat:

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);
    }
}

Android Private Libraries added to the build path. it didn't solve my problem

如果你对我的问题有所了解,请帮助我。

P.S。对不起我的英文。

2 个答案:

答案 0 :(得分:0)

试试这个 - >右键单击您的项目,然后

转到构建路径 - >配置构建路径 - >订单和出口

当你在那里时,你应该检查Android私有库,然后单击确定。

如果仍有此问题,请删除bin文件夹中的所有文件并重建项目。

希望这能帮到你!

答案 1 :(得分:0)

OMG。有必要在项目和外部依赖关系上加上一个复选标记。虽然我以前做过,但直到现在还没有工作。