Synchronize Gradle projects with workspace failed
So I noticed that the "settings.gradle" file was setting the root project name, and after the project rename, it still had the old name. Once I changed that name to the new name and refreshed the project, that error went away.
Have faced the same issue and sorted by updating 2 files in Project root.
1) settings.gradle file ==>
rootProject.name='ToMyNewProjectName'
2) .project file ==>
<ProjectDescription>
<name> ToMyNewProjectName </name>
</ProjectDescription>