R cannot be resolved by a variable?

I cleaned up my project and now I get "R cannot be resolved to a variable". It was good before I cleaned it.

I tried cleaning it again, again creating a project, creating a new project and copying all my files, and I went to the Android SDK Manager and installed all the “Android SDK Build-tools” to set all the parameters like other stackoverflow messages mentioned: enter image description here

Can anyone suggest something?

enter image description here

The above image shows my generated files and the R.java file is missing.

When I check the Problems

The figure above shows the problem log.

0
source share
2 answers

, R , , . ( )

R, App Manifest packge = "" , .

eclipse-image

+1

,

:

import com.mypackageprincipal.R;

R-

0

All Articles