Android Studio 不适用于 HoloEverywhere 和 ActionBarSherlock [英] Android Studio not working with HoloEverywhere and ActionBarSherlock
问题描述
我能够将 ActionBarSherlock 和 HoloEverywhere 导入 Android Studio,但我无法编译我的应用.
I was able to import both ActionBarSherlock and HoloEverywhere into Android Studio but I cannot get my app to compile.
截图:https://docs.google.com/file/d/0BwOn70drOiMfZHZVeXdEVzNXRXc/edit?usp=共享
无论出于何种原因,我的意图似乎都被吓坏了,即使库导入似乎工作正常,我也在尝试模拟我的应用程序时遇到以下错误:
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
有人有什么想法吗?
推荐答案
我刚刚遇到了这个问题.
I just had this issue.
您需要做的是转到 File >项目结构...
并单击Modules
.确保 ActionBarSherlock 在其 Dependencies
标签下有支持库.如果没有,请单击底部的加号并添加一个库(您可能需要单击 New Library...
以选择子项目中的 libs 文件夹).
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).
完成此操作后,将范围更改为 Provided
以便在编译应用程序时不会出现 lib 冲突.
After this is done, change the scope to Provided
so that you don't get lib conflicts when compiling your app.
这篇关于Android Studio 不适用于 HoloEverywhere 和 ActionBarSherlock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!