0

Sometimes when I'm modifying some projects I get old modules leftovers, like when trying to sync my project I get this error:

IntelliJ IDEA Failed To Sync Non Existent Module

It has issues when syncing my gradle project because of an old module that I removed from my project structure, but when syncing IntelliJ tries to also sync the deleted module.

1 Answer 1

0

In order to fix (or in this case remove leftovers) your old modules, you have to open and edit the file $PROJECT/.idea/gradle.xml. This file will contain a section called GradleProjectSettings, look for the one you don't need. In my case I already deleted the api/ module but IntellIJ was still trying to sync it, I'll just remove the selected line and done :)

IntelliJ IDEA With Problematic Old Settings

After that you can try again and sync your project, and see there's no more errors.

IntellJ IDEA Project Sync Successful

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.