Android Studio歷史版本 與 Android Gradle plugin

3.6(2020年2月25日)

3.5 (2019年8月)

3.5.1 (2019年10月)

  • 推薦內存設置 File > Settings(macOS 系統上選擇 Android Studio > Preferences) Appearance & Behavior > System Settings
  • Apply Changes,可讓您將代碼和資源更改推送到正在運行的應用,而無需重啓應用。Apply Changes 使用搭載 Android 8.0(API 級別 26)或更高版本的設備上支持的 Android JVMTI 實現中的功能。
  • 應用部署流程。新增設備列表菜單,可快速選擇部署到哪個設備。也可以一次在多個設備上運行應用。
  • 改進了 Gradle 同步和緩存檢測功能
  • Chrome OS Support
  • IntelliJ IDEA 2019.1
  • Android Gradle plugin 3.5.0 updates

3.4 (2019年4月)

3.4.2 (2019年7月)
3.4.1 (2019年5月)
3.4.0

  • IntelliJ IDEA 2018.3.4
  • Android Gradle plugin 3.4.0
  • New Project Structure Dialog
    1. Variables
    2. Modules
    3. Dependencies
    4. Build Variants
    5. Suggestions
  • New Resource Manager
  • R8 enabled by default
  • New intention action to quickly import dependencies

R8
gradle.properties可以做如下設置:

# Disables R8 for Android Library modules only.
android.enableR8.libraries = false
# Disables R8 for all modules.
android.enableR8 = false

**Note: **For a given build type, if you set useProguard to false in your app module’s build.gradle file, the Android Gradle plugin uses R8 to shrink your app’s code for that build type, regardless of whether you disable R8 in your project’s gradle.properties file.

3.3 (2019年1月)

  • IntelliJ IDEA 2018.2.2
  • Delete unused Android Studio directories
  • Lint improvements
  • Create New Project wizard
  • Profiler updates
  • Automatic downloading of SDK components
  • Support for Clang-Tidy
  • CMake version 3.10.2

3.0 (2017年10月)

  • Android Plugin for Gradle 3.0.0
  • Kotlin support
  • Java 8 language features support
  • Android Profiler replaces the Android Monitor tool
  • APK profiling and debugging
  • Device File Explorer This replaces the filesystem tool available in DDMS.
  • Instant Apps support
  • Android Things modules 物聯網設備上的應用開發
  • Adaptive Icons wizard
  • Support for font resources
  • URL intent-filter validator
  • Preview for D8 DEX compiler
  • Google’s Maven repository

Android Studio 3.0 includes an optional new DEX compiler called D8. It will eventually replace the DX compiler, but you can opt-in to use the new D8 compiler now.

Native debugging with Android Studio no longer supports 32-bit Windows.

Android Gradle plugin

簡介

Android Gradle plugin

buildscript {
    repositories {
        // Gradle 4.1 and higher include support for Google's Maven repo using
        // the google() method. And you need to include this repo to download
        // Android Gradle plugin 3.0.0 or higher.
        google()
        jcenter()
        ...
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:3.4.1'
        
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

The following table lists which version of Gradle is required for each version of the Android Gradle plugin. For the best performance, you should use the latest possible version of both Gradle and the plugin.

Plugin version Gradle version Build Tools
1.0.0 - 1.1.3 2.2.1 - 2.3
1.2.0 - 1.3.1 2.2.1 - 2.9
1.5.0 2.2.1 - 2.13
2.0.0 - 2.1.2 2.10 - 2.13
2.1.3 - 2.2.3 2.14.1+
2.3.0+ 3.3+
3.0.0+ 4.1+ 26.0.2+
3.1.0+ 4.4+
3.2.0 - 3.2.1 4.6+
3.3.0 - 3.3.2 4.10.1+
3.4.0 - 3.4.1 5.1.1+
3.5.0+ 5.4.1 - 5.6.4

3.5.0 (August 2019)

This version of the Android plugin requires the following:

3.4.0 (April 2019)

This version of the Android plugin requires the following:

3.3.0 (January 2019)

3.2.0 (September 2018)

3.1.0 (March 2018)

3.0.0 (October 2017)

This version of the Android plugin requires the following:

  • Gradle 4.1 or higher. To learn more, read the section about updating Gradle.
  • Build Tools 26.0.2 or higher. With this update, you no longer need to specify a version for the build tools—the plugin uses the minimum required version by default. So, you can now remove the android.buildToolsVersion property.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章