标签:android android studio 谷歌 google
为了简化 Android 的开发力度,Google 决定将重点建设 Android Studio 工具。Google 会在今年年底停止支持其他集成开发环境,比如 Eclipse。
Android Studio 是第一个官方的 Android 开发环境。其他工具,例如 Eclipse,在 Android Studio 发布之前已经有了大规模的使用。为了帮助开发者转向 Android Studio,谷歌已经写出一套迁移指南。
具体内容可到http://android-studio.org/查看
本文为其中常用功能介绍篇:
buildscript {
repositories {
jcenter()
}
dependencies {
classpath ‘com.android.tools.build:gradle:1.0.0‘
}
}
allprojects {
repositories {
jcenter()
}
}
maven {
url "http://xx.xxx.xxx/xxx"
}
http://maven.oschina.net/content/groups/public/
http://maven.oschina.net/content/repositories/thirdparty/
include ‘:app‘
include ‘:app2‘
project(‘:app2‘).projectDir = new File(‘path/to/app2‘)
apply plugin: ‘com.android.application‘
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "cc.bb.aa.myapplication"
minSdkVersion 10
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt‘), ‘proguard-rules.pro‘
}
}
}
dependencies {
compile fileTree(dir: ‘libs‘, include: [‘*.jar‘])
compile ‘com.android.support:appcompat-v7:21.0.3‘
}
版权声明:本文为博主原创文章,未经博主允许不得转载。
标签:android android studio 谷歌 google
原文地址:http://blog.csdn.net/u011732740/article/details/46725809