Ive just joined StackOverflow because I just cant find any answers to my problem. :(
I have however found other threads on this, and none seem to fix it.. i have no idea why.
So basically, i am trying to make an android app, i start up a NEW project and already the R.Java is missing (causing major issues, and i can't even compile from it :( ), ive tried: import.android.R;
, import.(packagename).R;
, ive tried to "clean"
it, and a bunch of other stuff. Literally everything i can think of.
What is going on, and how can I fix this?
package com.nicco.compare;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.main, menu);
return true;
}
}