Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing Actionbarsherlock into eclipse

Can someone tell me the steps on how to import the SherlockFragmentActivity.java and ActionBarSherlock folder correctly? I am not exactly sure how to do it and am getting many errors when trying.

like image 589
Sai Valluri Avatar asked Jan 08 '13 04:01

Sai Valluri


2 Answers

  1. Extract ActionBarSherlock project.
  2. Add the project in Eclipse like an android 4.0+ project.
  3. Then open you working project preferences and in Android section include de ActionBarSherlock project as library.
  4. Use what you need from ActionBarSherlock project.

You have a little tutorial on this site: tutorial

like image 50
AlexGo Avatar answered Nov 14 '22 18:11

AlexGo


  • Extract ActionBarSherlock
  • Open Eclipse and select File > Import
  • From there, select the library folder within the extracted ActionBarSherlock folder
  • Check "Copy projects into workspace"
  • Right click on the new project that should be named "library" go to Android Tools > Add Support Library
  • Follow those steps and you should be all set!

One thing you should pay attention to is the console. You might get permission issues if your Android SDK is installed in Program Files (x86). What you would need to do is then make sure you change the permissions so that apps can alter that folder. I know I had that problem and it took me forever to find because I didn't pay attention to the console.

like image 3
kwonye Avatar answered Nov 14 '22 17:11

kwonye