I had successfully imported a Module
in my Application project in Android Studio
.
Then I deleted or removed the module by following the below link:
If any of the above answers worked for you and you are sure that your branch is clean then close your Android Studio, browse to the root of your project and delete .idea
folder. Then re-launch Android studio and run your project.
I solved the problem through this way:
If you still see the error after removing the code from settings.gradle
and the app gradle file, check the following file and remove any entries with the module name you are trying to remove.
./.idea/modules.xml
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/app/app.iml" filepath="$PROJECT_DIR$/app/app.iml" />
</modules>
</component>
</project>