开发者

Android beginners

My android project shows error on the root folder(re开发者_如何学God cross on the application root folder)although any class or resource file inside the root folder does not show any error.


I've had this problem before and there have been a couple of different things that you can do to try and resolve it.

  1. Right click on your project in the Package Explorer and go Source > Clean Up...

  2. In the 'gen' directory find the R.java file and delete it. Then open up one of your project's XML files (could be layout, values, it doesn't matter), make a quick change and then save it. This will rebuild R.java to the state it was in before you deleted it, hopefully getting rid of your error.


Click on the project. Go to the Project -> Clean.. on the toolbar. If you really don't have any errors, then that should fix the project.


First Clean the project if this don't work then try Right Click on the project go to Android Tools -> Fix Project Properties, This should work if there is no errors actually in your project.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜