在机器人工作室安装ActionBarSherlock 4.4机器人、工作室、ActionBarSherlock

2023-09-04 08:01:36 作者:深海葬鱼情

我需要帮助安装/实施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.

打开工具 - > Android的 - > SDK管理器并安装最新的平台和构建工具18.0.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'
}