what is the procedure for generating R.java in android Eclipse juno

岁酱吖の 提交于 2019-12-01 14:28:10

Make sure you have Android SDK Build-Tools installed from the Android SDK Manager

Click this guy:

Then make sure the top three are all installed:

Click on Project -> Build Project

Edit

  1. Remove your gen directory and bin directory
  2. Click on Project -> Clean (wait till cleaning complete)
  3. Click Project -> Build Project

Ensure the code, resources and AndroidManifest.xml do not have any problem.

First, delete the R.java file. As soon as you delete, that file should be re-generated automatically if you have enabled automatic build (Project->Build Automatically).

If that doesn't work try to clean the project by clicking on Project->Clean.

If it still doesn't work then, confirm you have android sdk build tools installed. For this, open Android SDK Manager and ensure Android SDK Build-tools has the status of Installed.

Also confirm that the ADT is up-to-date. To update ADT, in eclipse go to: Help -> Check for updates. Select the necessary entries like: Android Development Tools and update them.

Hopefully one of these solutions will solve your problems :-).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!