How to synchronize build variants among apps

淺唱寂寞╮ 提交于 2020-07-10 08:31:39

问题


I am working on a project that contains multiple applications. Several of them contain the same flavors. The same values on a flavor dimension, precisely.

I would like to have their value synchronized, if possible automatically. Otherwise, I would like it to show there is a conflict.

To summarize the situation, I would like the build variant selection pane to behave for unrelated applications of the same project the same as it works for module being a dependency of an app.

How can I achieve it ?


回答1:


Android Studio only changes things based on the "leaf nodes" related to what you are changing, and thus won't ever link up the Apps. I had this same problem and solved it by writing my own Android Studio Plugin



来源:https://stackoverflow.com/questions/61054938/how-to-synchronize-build-variants-among-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!