Jacki
Jacki

Reputation: 672

react-native android studio leaves empty modules

I uninstalled some libraries from my react-native app but weirdly they still exists in android studio. I checked package.json and they are not there anymore, also checked build.gradle and there is no any imports there either. Saw that they might exist still in .idea > modules.xml, and found that they still were there so I removed them as well but it didn't help. I still have empty modules in Android studio like on picture. I tried to remove them from project structure with "-" but they do not appear there..., any idea how could I clean it up a bit?

enter image description here

Upvotes: 0

Views: 504

Answers (1)

MarGrzy
MarGrzy

Reputation: 56

Seems like some dependencies got messed up and android studio doubled it. If you cannot delete them in

project structure > modules

then try something like this:

file > Invalid Caches/ restart

it should clean up a bit a structure.

Also pay attention that .idea might be created twice. In my case it happened that there were two directories (one in android directory, and another in app directory). Check these two places if some old modules weren't left behind, if yes then just remove them.

Upvotes: 3

Related Questions