最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Switch build variants in bulk for multi-module Android projects - Stack Overflow

programmeradmin2浏览0评论

Environment

  • Android Studio version: Android Studio Meerkat | 2024.3.1
  • Gradle Plugin version: 8.7.1
  • Gradle version: 8.9
  • OS: macOS

I'm working on a large Android project with 100+ modules, and switching build variants is a pain. I have to manually change the variant for each module in the Build Variants panel — and each time I change one, it triggers a Gradle sync, which makes the process super slow.

I found this related post: Changing build variants in bulk in AndroidStudio 3.0+ …but none of the solutions worked for me.

Is there any way to change all modules' build variants at once, or at least defer sync until all are updated?

发布评论

评论列表(0)

  1. 暂无评论