logo
  • 教程列表
  • SO官方文檔
  • 配置產品風格
    • build.gradle 中的 Flavor 常量和資源
    • 如何配置 build.gradle 檔案
    • 新增 flavor 的依賴項
    • 使用 Flavor Dimension
    • 開發和生產產品風格的例子
  1. StackOverflow 文件
  2. android-gradle 教程
  3. 配置產品風格
  4. 如何配置 build.gradle 檔案

如何配置 build.gradle 檔案

Created: November-22, 2018

android {
    ...
    defaultConfig {...}
    buildTypes {...}
    productFlavors {
        demo {
            applicationId "com.example.myapp.demo"
            versionName "1.0-demo"
        }
        full {
            applicationId "com.example.myapp.full"
            versionName "1.0-full"
        }
    }
}
  • 新增 flavor 的依賴項
  • build.gradle 中的 Flavor 常量和資源

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 關於本站
  • 免責聲明