一直试图使用Libgdx框架,并遇到了一些令人沮丧的问题..我正在关注一个教程,我无法运行我的项目.我究竟做错了什么?
package com.mygdx.game.android;
import com.badlogic.gdx.ApplicationListener;
import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
public class AndroidLauncher implements ApplicationListener {
SpriteBatch batch;
Texture mario;
@Override
public void create() {
batch = new SpriteBatch();
mario = new Texture(Gdx.files.internal("mario.png"));
}
@Override
public void resize(int width, int height) {
// TODO Auto-generated method stub
}
@Override
public void render() {
Gdx.gl.glClearColor(1,1,1,1);
batch.begin();
batch.draw(mario, 50, 50);
batch.end();
}
@Override
public void pause() {
// TODO Auto-generated method stub
}
@Override
public void resume() {
// TODO Auto-generated …Run Code Online (Sandbox Code Playgroud) 我是android开发的新手,我有一些调试问题.我正在从一个名为"TheNewBoston"的youtube频道学习并在第10课遇到问题.我没有使用与教程中的人相同的src包,因为我找不到它所以我想知道这是否导致了这个问题.
添加和子按钮都具有相同的'此行上的多个标记 - 按钮无法通过OnCreate方法中的类型'错误来解析.
Java的:
package com.example.thenewboston.sam;
import android.annotation.TargetApi;
import android.app.Activity;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.example.thenewboston.sam.util.SystemUiHider;
public class FullscreenActivity extends Activity {
/**
* Whether or not the system UI should be auto-hidden after
* {@link #AUTO_HIDE_DELAY_MILLIS} milliseconds.
*/
int counter;
Button add, sub;
TextView Display;
private static final boolean AUTO_HIDE = true;
/**
* If {@link #AUTO_HIDE} is set, the number of milliseconds to wait after
* user …Run Code Online (Sandbox Code Playgroud)