[英]Install ActionBarSherlock 4.4 in Android Studio
I need help installing/implementing ActionBarSherlock 4.4.0 into Android Studio 0.2.3. 我需要在Android Studio 0.2.3中安装/实现ActionBarSherlock 4.4.0的帮助。 I have tried multiple tutorials and looked through answers on here.
我尝试了多个教程,并在这里浏览了答案。 But none have worked for this beginner.
但是没有人适合这个初学者。
Has anyone tried to install ABS 4.4.0 into Android Studio yet? 有没有人试图将ABS 4.4.0安装到Android Studio中? 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?
或向我指出可以提供帮助的答案或教程?
I successfully added it as aar
dependency, no need to download and compile any sources. 我已成功将其添加为
aar
依赖项,而无需下载和编译aar
代码。
Open Tools -> Android -> SDK Manager and install latest platform and build tools 18.0.1. 打开工具-> Android-> SDK Manager,安装最新平台和构建工具18.0.1。
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. 使用适用于Android 2.1(API级别7)的Android Studio创建新项目,
build.gradle
子项目(而非顶级项目)的build.gradle
替换为以下项目。
Complete minimal build.gradle
, it needs Android Build Tools version 18: 完成最小的
build.gradle
,它需要Android Build Tools版本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'
}
If you are already using Android Studio, you might do it the GUI way. 如果您已经在使用Android Studio,则可以通过GUI方式进行。
This also allows you to search the Maven repo, so if you don't know the full name of the library no worries. 这也使您可以搜索Maven存储库,因此,如果您不知道库的全名,就不用担心。
sherlock
and press enter to search sherlock
,然后按Enter键进行搜索 com.actionbarsherlock:actionbarsherlock:4.4.0@aar
com.actionbarsherlock:actionbarsherlock:4.4.0@aar
This will automatically add it to your build.gradle 这将自动将其添加到您的build.gradle
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.