1

I recently updated my and when i import the the project is full of errors. Before the update everything was working fine. How can i fix this?

user2065529
  • 247
  • 2
  • 16
  • Check this answer. It helped me solve this problem. http://stackoverflow.com/questions/16608524/eclipse-giving-error-missing-r-java-file-after-recent-update – Sharjeel May 18 '13 at 16:54
  • thanks but this was the first think i checked! – user2065529 May 18 '13 at 16:55
  • didn't it help you? Try to restart Eclipse or Computer and rebuild the project. – Sharjeel May 18 '13 at 16:56
  • no the problem hasn't been solved. In the beginning in all of my projects i had errors and after i made the solution you suggest to me everything solved except the actionbarsherlock – user2065529 May 18 '13 at 17:03

4 Answers4

2

Right click to ActionBarSherlock project. Go to menu Properties and then "Order and export" and check 'Android Private Libraries' checkbox. Click 'Apply'. Rebuild ActionBarSherlock. Make same with your project. Rebuild your project. Enjoy.

Anatolii Shuba
  • 4,614
  • 1
  • 16
  • 17
1

Check this link. Also, try this: right-click your project->Properties->Java Build Path->check the "android private libraries".

Community
  • 1
  • 1
Neoh
  • 15,906
  • 14
  • 66
  • 78
  • thanks for your answer. I did what you told me but it still doesn't work. – user2065529 May 18 '13 at 16:51
  • yes and before post my question i searched about it and i installed the sdk-build tools. Now i download the adt bundle and i will install from the beginning! – user2065529 May 18 '13 at 17:05
  • You can check whether the library imports are correct. Right-click project-> properties-> Android-> scroll to bottom, check the library reference is correct. Or right-click project->Java Build Path-> libraries, check the external jars have no error. – Neoh May 18 '13 at 17:08
  • i checked this because i delete the actionbarsherlock and i import it again – user2065529 May 18 '13 at 17:15
0

I had the same problem.

After you update everything and you restart/refresh it will show another option "Android SDK-Build Tool" Install this and it will fix the problem.

You can find more on this here.Check this answer. It helped me solve this problem. Eclipse giving error, missing R.java file after recent update

Update: Restart your Eclipse after you install everything and rebuild all the projects that have problems. It should fix everything. I am on Mac. Maybe if you are on Windows then you have to restart computer.

Community
  • 1
  • 1
Sharjeel
  • 15,588
  • 14
  • 58
  • 89
0

I imported the actionbarsherlock and i changed the project build target to 4.2.2 and after that i cleaned the project!

user2065529
  • 247
  • 2
  • 16