https://kotlinlang.org logo
Title
a

Ali Khaleqi Yekta

07/19/2022, 6:36 PM
Hi There's a syncing problem that literally stopped me for a month from upgrading the AGP _(which will most likely fix an IDE false positive error about resolving common dependencies in
androidMain
)_; I'd be really happy to even get a clue of what to touch to make this work. I tried countless ways but nothing worked: https://stackoverflow.com/questions/73006307/gradle-sync-cannot-find-a-variant-matching-build-type-null-and-product-flavo
s

Steve Albright

07/20/2022, 12:58 AM
Have you tried to clean the .idea directory up?
a

Ali Khaleqi Yekta

07/20/2022, 3:21 AM
Multiple times, I even got to understand what each of the config files did in there and handpicked them
As far as I can tell, it's probably a gradle bug/misconfiguaration; but it took a month and I couldn't find the bug!
l

Lukasz Burcon

07/20/2022, 2:59 PM
Check if you’re using Android plugin
a

Ali Khaleqi Yekta

07/21/2022, 6:36 AM
@Lukasz Burcon Actually, I'm using Android Studio; I tried with both stable and canary distributions and still got the same result