patdugan
patdugan

Reputation: 797

Android Studio not working with HoloEverywhere and ActionBarSherlock

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?

Upvotes: 4

Views: 2664

Answers (2)

Stelian Morariu
Stelian Morariu

Reputation: 505

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

Upvotes: 0

DanO
DanO

Reputation: 10270

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.

Upvotes: 2

Related Questions