Build Path issue with Java Android project when starting Eclipse
Posted
by
Matt Smith
on Stack Overflow
See other posts from Stack Overflow
or by Matt Smith
Published on 2012-04-16T04:45:11Z
Indexed on
2012/04/16
5:29 UTC
Read the original article
Hit count: 225
eclipse
I booted up eclipse to start on a project, and without typing in a word I already have several errors.
package department.namespace;
import android.app.Activity;
import android.os.Bundle;
public class DepartmentActivity extends Activity {
/** Called when the activity is first created. */
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
At package department.namespace, it says:
multiple marks at this line and the type
java.lang.Object
cannot be resolved. It is indirectly referenced from required .class filesThe import android.os cannot be resolved.
Override cannot be resolved as a type
The method OnCreate(Bundle) is undefined for the type Activity
R. cannot be resolved as a variable.
Since this JUST came up when I started Eclipse, how do I fix this?
© Stack Overflow or respective owner