• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Coding Error in Mainactivity.java file in Eclipse

How to rectify the error in MainActivity.java file In Eclipse While Creating Android Apllication

  • Coding Error

    Votes: 0 0.0%
  • File error

    Votes: 0 0.0%
  • Line Error

    Votes: 0 0.0%

  • Total voters
    0
Hi sir/ Madam,

Iam using Eclipse for developing Android Application. I get an error after Creating an Android Application in Project.

The error is in R.menu.main MainActivity.java file

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;
}
 
Does the R.menu.main actually exist? And also I would switch from eclipse to android studio. Eclipse is not supported any more so it will be a lot harder to get libs and plugins for it. And also to get help with it too.
 
Back
Top Bottom