Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fix "Variant selection conflict found"?

Tags:

android

In my project I have a few modules. If Build Variant tab all in debug build variant all is ok

enter image description here

But if I change one of the module to release build variant his dependency modules also change to release, but with kind of error

enter image description here

I tried this solution

https://stackoverflow.com/a/52011770/5709159

for me it doesn't work

How to fix it?

like image 424
Aleksey Timoshchenko Avatar asked Oct 18 '25 19:10

Aleksey Timoshchenko


1 Answers

Hover over the red area you can see the reason:

Module 'XXX' has variant 'release' selected, but the module "XXX" depends on variant 'debug'

It's because the dependent modules are using the wrong building variant.

like image 130
Qing Avatar answered Oct 20 '25 10:10

Qing