Android Studio簡介

22
Android Studio 簡介 Wa l ter

Transcript of Android Studio簡介

Page 1: Android Studio簡介

Android Studio 簡介Walter

Page 2: Android Studio簡介

Setup

Android Studio

Gradle

Page 3: Android Studio簡介

Why Android Studio?

Page 4: Android Studio簡介
Page 5: Android Studio簡介
Page 6: Android Studio簡介

Reason(1/2)

Eclipse ADT no longer in active development (Don't

be evil……)

Official IDE

Page 7: Android Studio簡介

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

Page 8: Android Studio簡介

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

Page 9: Android Studio簡介

Rich layout editor

Page 10: Android Studio簡介

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

Page 11: Android Studio簡介

Reason(2/2)

Rich layout Editor

Powerful coding editing

Code templates to help you build common app

features

Gradle-based build system

Page 12: Android Studio簡介
Page 13: Android Studio簡介

Reason(2/2)

Rich layout Editor

Powerful coding editing

Code templates to help you build common app

features

Gradle-based build system

Page 14: Android Studio簡介

VS

Structure

Page 15: Android Studio簡介

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

Page 16: Android Studio簡介

A very flexible general

purpose build tool like Ant.

Very powerful support for

multi-project builds.

Very powerful dependency

management

Feature

Page 17: Android Studio簡介

A very flexible general

purpose build tool like Ant.

Very powerful support for

multi-project builds.

Very powerful dependency

management

Feature

Page 18: Android Studio簡介

Gradle Build Script

SigningConfigs

BuildType

ProductFlavors

demo..

Page 19: Android Studio簡介

A very flexible general

purpose build tool like Ant.

Very powerful support for

multi-project builds.

Very powerful dependency

management

Feature

Page 20: Android Studio簡介

Dependencies

from remote (maven…)

from local (jar, module)

Page 21: Android Studio簡介

Other

Search log in logcat By tag name

auto-import

auto-refresh data

Page 22: Android Studio簡介

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