4

I was able to import both ActionBarSherlock and HoloEverywhere into Android Studio but I cannot get my app to compile.

screenshot: https://docs.google.com/file/d/0BwOn70drOiMfZHZVeXdEVzNXRXc/edit?usp=sharing

For whatever reason my intent's seem to be freaking out and even though the library imports seem to be working fine, I'm also getting the following errors trying to emulate my application:

java: /Users/patdugan/usmc-pro-fitness-abs-he/src/com/patdugan/usmcprofitness/USMCProFitMainActivity.java:16: package org.holoeverywhere.widget does not exist

Anybody have any thoughts?

WarrenFaith
  • 57,492
  • 25
  • 134
  • 150
patdugan
  • 787
  • 2
  • 7
  • 17
  • ohh its cool to see that you are using Android Studio.Can you share us your experience with android studio so far. – Abhijit Chakra May 16 '13 at 05:19
  • I think you should to see in File->Project Structure->Modules->Dependencies and add module dependencies – ADK May 16 '13 at 12:59
  • You were right @ADK. I had incorrectly added HE and ABS as libraries and although the dependencies were set correctly that's the reason it wasn't compiling. – patdugan May 16 '13 at 22:12

2 Answers2

2

I just had this issue.

What you need to do is go to File > Project Structure... and click on Modules. Make sure that ActionBarSherlock has the support library under its Dependencies tab. If not, click the plus at the bottom and add a Library (You may have to click New Library... to select the libs folder within the sub-project).

After this is done, change the scope to Provided so that you don't get lib conflicts when compiling your app.

DanO
  • 10,230
  • 4
  • 41
  • 34
  • Thanks for pointing me in the right direction @Daniel. I tried making that change but still running into some problems: https://docs.google.com/file/d/0BwOn70drOiMfeW9XWC00T1k5WHM/edit. I think I'm close but I must be missing something, haha! – patdugan May 16 '13 at 16:42
  • ActionBarSherlock needs to be included as its own Module, not as a library. Click the Plus icon and import the ActionBarSherlock module into the project. – DanO May 16 '13 at 18:04
  • That worked like a charm! Set HE and ABS as modules, added necessary dependencies to each one, and the project now compiles and runs as expected. You're the man @Daniel! Thank you! – patdugan May 16 '13 at 20:34
  • @pdugan20 can you please zip your working project folder with HE and ABS and upload it? ive been trying to get HE working in Android Studio for days now – sn0ep Sep 16 '13 at 20:00
0

Holoeverywhere doesn't use ActionBarSherlock anymore, it now relies on the ActionBarCompat library.

Stelian Morariu
  • 505
  • 7
  • 16