在机器人工作室安装ActionBarSherlock 4.4 [英] Install ActionBarSherlock 4.4 in Android Studio

查看:140
本文介绍了在机器人工作室安装ActionBarSherlock 4.4的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要帮助安装/实施ActionBarSherlock 4.4.0到Android的工作室0.2.3。我曾尝试多种教程,并通过答案就在这里看着。但都没有工作了这个初学者。

I need help installing/implementing ActionBarSherlock 4.4.0 into Android Studio 0.2.3. I have tried multiple tutorials and looked through answers on here. But none have worked for this beginner.

有没有人试图安装ABS 4.4.0到Android的工作室吗?谁能给我就如何做到这一步说明详细的一步?或点我一个答案或教程,这将有助于?

Has anyone tried to install ABS 4.4.0 into Android Studio yet? Can anyone give me detailed step by step instructions on how to do this? Or point me to an answer or tutorial that will help?

推荐答案

我成功添加为 AAR 相关性,无需下载和编译的任何资源。

I successfully added it as aar dependency, no need to download and compile any sources.

  1. 打开工具 - > Android的 - > SDK管理器并安装最新的平台和构建工具18.0.1

  1. Open Tools -> Android -> SDK Manager and install latest platform and build tools 18.0.1.

与Android工作室为Android 2.1创建新项目(API 7级),并更换 build.gradle 子项目(而不是最上面的一个)与下面的一

Create new project with Android Studio for Android 2.1 (API level 7) and replace build.gradle of subproject (not the top one) with the one below.

完成最少 build.gradle ,它需要Android编译工具版本18:

Complete minimal build.gradle, it needs Android Build Tools version 18:

buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.5.+'
    }
}

apply plugin: 'android'

repositories {
    mavenCentral()
}

android {
    compileSdkVersion 18
    buildToolsVersion "18.0.1"

    defaultConfig {
        minSdkVersion 7
        targetSdkVersion 18
    }
}

dependencies {
    compile 'com.actionbarsherlock:actionbarsherlock:4.4.0@aar'
}

这篇关于在机器人工作室安装ActionBarSherlock 4.4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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