import .R cannot be resolved when I import actionbarsherlock

ActionBarSherlock is a library project.

So import the library project in your eclipse

enter image description here

Its a library project. To check Right Click on your library project. goto Properties.

Choose android. You will see a Is Library checked as shown in the below pic.

enter image description here

Add your library project to your Android project.

Right click on your Android project. Goto Properties . Choose android . Click add button add the library to your project. You can see a green tick in the below pic.

enter image description here

Make sure you have one copy of andorid-suuport-v4.jar in your libs folder.

Do not import R.*;

You will see two one for the library project and one for your android project.
Clean and build.

enter image description here

Leave a Comment