I have an Android Studio project in which I have multiple modules, each of those module depending on a share module. And let\'s say that this share module has an xml file ca
Had the same issue. Found that these 'build' folders were marked as sourceFolder in the module's .iml file.
Removing all such entries fixed the problem