what is the procedure for generating R.java in and

2020-03-31 09:14发布

I have installed eclipse juno and also added the plugin's of the android sdk. After installing android SDK manager, I've created a new android project, but a problem arises in R.java file. R.java doesn't open. Please give me a solution. I am new to android.

3条回答
我命由我不由天
2楼-- · 2020-03-31 09:20

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

Click this guy:

enter image description here

Then make sure the top three are all installed:

enter image description here

查看更多
戒情不戒烟
3楼-- · 2020-03-31 09:30

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
查看更多
姐就是有狂的资本
4楼-- · 2020-03-31 09:30

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 :-).

查看更多
登录 后发表回答