Android的工作室不工作HoloEverywhere和ActionBarSherlock [英] Android Studio not working with HoloEverywhere and ActionBarSherlock

查看:99
本文介绍了Android的工作室不工作HoloEverywhere和ActionBarSherlock的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我能导入ActionBarSherlock和HoloEverywhere到Android的工作室,但我不能让我的应用程序进行编译。

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

任何人有什么想法?

Anybody have any thoughts?

推荐答案

我只是有这个问题。

您需要做的是去文件>项目结构... ,点击模块。确保ActionBarSherlock有依赖标签下的支持库。如果没有,请单击加在底部并添加库(您可能需要点击新图书馆... 来选择子项目中的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).

在此操作后,将该范围更改为提供,这样你就不会得到LIB冲突编译您的应用程序时。

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

这篇关于Android的工作室不工作HoloEverywhere和ActionBarSherlock的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆