The B
The B

Reputation: 545

Missing "menu" in the "res" file

I'm learning now the Java language and using Eclipse for that. When I create an "Android application project" I find out that the menu folder is missing in the res folder. Moreover, in the MainActivity.java I get the error "The import android.view.MenuItem is never used" beside the import android.view.MenuItem.

So, if someone knows how to fix it then please post a solution.

Upvotes: 1

Views: 592

Answers (1)

CommonsWare
CommonsWare

Reputation: 1006614

When I create an "Android application project" I find out that the menu folder is missing in the res folder

If you want this folder, create it. There are millions of possible resource folders; the Eclipse wizards will not create them all.

Moreover, in the MainActivity.java I get the error "The import android.view.MenuItem is never used" beside the import android.view.MenuItem.

That is no an error. It is a warning, indicating that the code has an import that is not needed. If you are not planning on using that import any time soon, delete that line.

Upvotes: 3

Related Questions