Try Project ==> clean and build
Create new project, R.java file not generated
-
12-10-2022 - |
Pregunta
When I create a new project in Eclipse, I automatically get errors in my MainActivity.java file when I open it, stating R cannot be resolved to a variable
. I think it has to do with me recently updating some stuff in my SDK Manger. Does anyone have any ideas?
Solución
Otros consejos
Do you mean that when you create a project, the R file is not created at all? If so, try updating the things that need to updated and try again. Sometimes though, right when you open a project, you have to wait for a minute for it to work properly. If this doesn't work could you also post a pic of where it shows the error?
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow