Click here to Skip to main content
15,891,253 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
i using eclipse and create a activity which was working fine but after three to four time the same activity showing error


R can not be resolve to a variable

setContentView(R.layout.activity_login);
// that R.id.....


i try many ways but problem is same and one more thing it's not creating R.java file in gen folder what can be the reason
thanks in advance
Posted
Comments
Richard MacCutchan 18-Nov-15 8:05am    
The reason is that either there are too many errors in your code, or your project has not been built. Look at the eclipse windows to check for errors.
Krunal Rohit 18-Nov-15 8:22am    
Build your project.

-KR
Afzaal Ahmad Zeeshan 18-Nov-15 8:25am    
Re-build your project by removing the previous binaries. ;-)

1 solution

Go to Build>>Clean Project>> Run your app
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900