I am creating new Android application in my Eclipse.Application is created but the R.java file is not creating,I am getting errors R cannot be resolved.
IS there any issue in my android-sdk?
Thanks
I am creating new Android application in my Eclipse.Application is created but the R.java file is not creating,I am getting errors R cannot be resolved.
IS there any issue in my android-sdk?
Thanks
Try Clean and Build if it does not work please close the eclipse and open it again It should work.
You can try following things.
1)in project
tab(topbar) there is clean option try that, if your code is fine it will regenerate R.java file
2)if you imported import android.R.*
statements, remove it, You should add your.project.name.R.* instead;
3) there may be errors in your xml files, check error viewer
it should show errors
there.
Check this. have you imported import android.R;
in your project. If have means remove this import android.R;
. clean and Rebuild your project
import android.R;
No generated R.java file in my project. R.Java not generated. R.java file not getting generated.
When you clean and build your project R.java gets generates automatically. Try the above links.
There are 2 ways to solve this problem:
1) In Project Explorer, Right Click on your Project, then go to Build Project
2)in project tab Go to clean option, if your code is fine it will regenerate R.java file