问题描述
这是我的代码段
val applicationId = when {
this.name.contains("test") -> this.mergedFlavor.applicationId + ".test"
this.name.contains("paidDebug") -> this.mergedFlavor.applicationId + ".dbg"
this.name.contains("freeDebud") -> this.mergedFlavor.applicationId + ".dbg"
this.name.contains("paidRelease") -> this.mergedFlavor.applicationId+ ".release"
this.name.contains("freeRelease") -> this.mergedFlavor.applicationId+ ".release"
else -> this.mergedFlavor.applicationId + ".development"
}
println(applicationId)
defaultConfig.applicationId = applicationId
println(this.applicationId)
但是将其更改为defaultConfig并不会更改applicationId。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)