Android Studio簡介

Post on 18-Jul-2015

84 views 2 download

Tags:

Transcript of Android Studio簡介

Android Studio 簡介Walter

Setup

Android Studio

Gradle

Why Android Studio?

Reason(1/2)

Eclipse ADT no longer in active development (Don't

be evil……)

Official IDE

Reason(2/2)

Rich layout Editor

Powerful coding editing

Code templates to help you build common app

features

Gradle-based build system

Build variants and multiple apk file generation

Reason(2/2)

Rich layout Editor

Powerful coding editing

Code templates to help you build common app

features

Gradle-based build system

Build variants and multiple apk file generation

Rich layout editor

Reason(2/2)

Rich layout Editor

Powerful coding editing

override

string & resource preview

auto-complete & learning

Code templates to help you build common app features

Gradle-based build system

Reason(2/2)

Rich layout Editor

Powerful coding editing

Code templates to help you build common app

features

Gradle-based build system

Reason(2/2)

Rich layout Editor

Powerful coding editing

Code templates to help you build common app

features

Gradle-based build system

VS

Structure

Module

Modules are a "discrete unit

of functionality that can be

run, tested, and debugged

independently”

Each module needs to have

it's own gradle build file

A very flexible general

purpose build tool like Ant.

Very powerful support for

multi-project builds.

Very powerful dependency

management

Feature

A very flexible general

purpose build tool like Ant.

Very powerful support for

multi-project builds.

Very powerful dependency

management

Feature

Gradle Build Script

SigningConfigs

BuildType

ProductFlavors

demo..

A very flexible general

purpose build tool like Ant.

Very powerful support for

multi-project builds.

Very powerful dependency

management

Feature

Dependencies

from remote (maven…)

from local (jar, module)

Other

Search log in logcat By tag name

auto-import

auto-refresh data

Reference

http://goo.gl/6Zcy4p AS Official Website

http://goo.gl/5mTM0K AS v.s Eclipse

http://goo.gl/G71zga AS v.s Eclipse

https://gradle.org/ Gradle Official Website