Right click on project properties->java build path->libraries click add external jar .
go to the Android installation folder, for example C:\Program Files\Android\android-sdk\extras\android\support\v4 , there you will find the android_support_v4.jar file, then add the jar file and go to the "Order" and "Export" tab check the library and click OK.
source share