either you have a dependency cycle in your gradle ...
# intellij
b
either you have a dependency cycle in your gradle setup (e.g shared depends on core and vice versa) or there's a bug in the AS/Idea gradle import