Error importing HoloEverywhere
Follow the steps below(taken from blog here) to add ActionBarSherlock
- Download the .zip/.tgz and extract it
- Go to eclipse and choose
File->New-> Android Project
- Select
Create project from existing source
and thenbrowse
to thelibrary
folder inside extractedAndroidBarSherlock
folder - Build Target should be the latest(14 or15), but your minSdkVersion can be less (7 or 8)
- Press
Finish
- Right click on the newly created project and go to
Properties
. - Under the
Android
heading, you should see a section forLibrary
with a checkboxIsLibrary
. Make sure that's checked. - Right click -> Properies on the project in which you wish to add
AndroidBarSherlock
under theAndroid
heading and theLibrary
section chooseAdd
. - You should see the
ActionBarSherlock
library, add this to your project - Lastly, if you were using the compatibility support , you need to delete that jar since it's included in ActionBarSherlock.
Follow the steps below to add HoloEverywhere
- Download Zip from GitHub to your computer
- UnZip the folder
- Go to eclipse and choose
File->New-> Android Project
- Select
Create project from existing source
and thenbrowse
to theHoloEverywhereLib
folder inside extracted folder - Press
Finish
- Right click on the newly created project and go to
Properties
. - Under the
Android
heading, you should see a section forLibrary
with a checkboxIsLibrary
. Make sure that's checked and pressAdd
and previously added libraryActionBarSherlock
.
Follow these steps to add HoloEverywhere
to your project
- Create a new Android project
- Right Click on project -> Properties -> Android -> Add, add both
ActionBarSherlock
andHoloEverywhere
Change the
Android Manifest
to following<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/Holo.Theme">Edit you
main.xml
to include Holo theme widgets.Change your
activity
as followspublic class ChkActionBarSherlock extends SherlockActivity {
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
}
}
Importing HoloEverywhere into Eclipse: Error: No resource found that matches the given name
I finally found out what was causing the problem:
Android library projects have to be added via the Android tab in the Project settings, not via the Java Build path.
So, for adding the ActionbarSherlock dependency you have to open the settings of the HoloEverywhere project, choose the "Android" tab, click add and choose the ActionBarSherlock project.
I hope this helps future readers.
Prototik HoloEverywhere import error: duplicate entry 'src'
Ok As mentioned in the comment: Import the HoloEverywhere using File> Import> Git > Projects from Git
Importing HoloEverywhere into Eclipse: Error: No resource found that matches the given name
I finally found out what was causing the problem:
Android library projects have to be added via the Android tab in the Project settings, not via the Java Build path.
So, for adding the ActionbarSherlock dependency you have to open the settings of the HoloEverywhere project, choose the "Android" tab, click add and choose the ActionBarSherlock project.
I hope this helps future readers.
Related Topics
How to Save Image in Android Gallery
Android Java.Lang.Noclassdeffounderror
How to Create a Custom Notification Layout in Android
Googlesignatureverifier Signature Not Valid Message (Google Play Services 9.0.0)
How to Verify That an Android APK Is Signed with a Release Certificate
How to Determine the Screen Width in Terms of Dp or Dip at Runtime in Android
What Does the Layoutinflater Attachtoroot Parameter Mean
Android: Http Communication Should Use "Accept-Encoding: Gzip"
Shadow Effect for a Text in Android
Adding an Onclicklistener to Listview (Android)
Android SQLite Issue - Table ... Has No Column Named
Android Pendingintent Extras, Not Received by Broadcastreceiver
Setonitemclicklistener on Custom Listview
Facebook - "Cannot Query Users by Their Username" Solution