Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Android Version Settings

takahirom
August 19, 2015

Android Version Settings

takahirom

August 19, 2015
Tweet

More Decks by takahirom

Other Decks in Programming

Transcript

  1. AndroidͰઃఆ͢Δόʔδϣϯ • Ϟδϡʔϧͷbuild.gralde(app/build.gradle) • compileSdkVersion 22 • buildToolsVersion "19.1.0" •

    minSdkVersion 14 • targetSdkVersion 22 • ϓϩδΣΫτϧʔτͷbuild.gradle • classpath 'com.android.tools.build:gradle:1.3.0'
  2. build.gradle • buildscript {
 repositories {
 jcenter()
 }
 dependencies {


    classpath 'com.android.tools.build:gradle:1.2.3'
 
 }
 }
  3. Android Gradle Pluginͷόʔδϣϯ • app/build.gradleͰ apply plugin: ‘com.android.application’ͱ͔ ͰೖΔ΋ͷ •

    android {ͱ͔Ͱॻ͍͍ͯ͘΋ͷͷਖ਼ମ • BuildVariantsͳͲ΋͜ͷGradle Plugin͕΍͍ͬͯΔ༷ࢠ
  4. Android Gradle Pluginͷόʔδϣϯ • app/build.gradleͰ apply plugin: ‘com.android.application’ͱ͔ ͰೖΔ΋ͷ •

    android {ͱ͔Ͱॻ͍͍ͯ͘΋ͷͷਖ਼ମ • BuildVariantsͳͲ΋͜ͷGradle Plugin͕΍͍ͬͯΔ༷ࢠ • Android Gradle Plugin 1.4ͰVectorը૾αϙʔτͱ͔͞ΕͨΓ ͢ΔΈ͍ͨͰ͢