赞
踩
在module级下的gradle添加以下配置
- android {
- defaultConfig {
- ...
- flavorDimensions "versionCode"
- }
- productFlavors {
- develop {
- applicationId "com.example.myapplication"
- manifestPlaceholders =[
- APP_NAME:'开发版'
- ]
- }
- dev_AA {
- applicationId "com.example.myapplication.AA"
- manifestPlaceholders =[
- APP_NAME:'AA版'
- ]
- }
- dev_BB {
- applicationId "com.example.myapplication.BB"
- manifestPlaceholders =[
- APP_NAME:'BB版'
- ]
- }
- }
- }
然后点击Sync
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。