Android Studio does not work with HoloEverywhere and ActionBarSherlock

I managed to import both ActionBarSherlock and HoloEverywhere into Android Studio, but I cannot get my application to compile.

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

For some reason, my intent seems to be worried, and although importing the library seems to work fine, I also get 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 

Anyone have any thoughts?

+4
source share
2 answers

I had this problem.

What you need to do is go to File > Project Structure... and click Modules . Make sure that ActionBarSherlock has a support library on the Dependencies tab. If not, click the plus sign at the bottom and add the library (you may need to click New Library... to select the libs folder in the subproject).

After that, change the scope to Provided so as not to create lib conflicts when compiling your application.

+2
source

Holoeverywhere no longer uses ActionBarSherlock, now it uses the ActionBarCompat library.

0
source

Source: https://habr.com/ru/post/1481091/


All Articles