The combination of npm, Android Studio, and Xcode seem to be pretty fragile. Here are some "methods" to fix what seem like mostly IDE bugs.
Delete your .idea/ folder and restart AS, maybe 2x.
Delete gradle caches rm -rf $HOME/.gradle/caches/
Edit the .idea/modules.xml file and remove it. This is AS just being confused.