after renaming module and directory by right click > Refactor > Rename getting project refresh error

Answered

1. Renamed both module and directory

2. tried gradle refresh getting below error

 

Gradle 'WordPressNativeAppsAutomation' project refresh failed

Error:Project directory '/Users/vikram-anna/Documents/WordPressNativeAppsAutomation' does not exist.

Please refer to attached screen shot, only directory got renamed but couldn't rename module even I've got settings.gradle file present under module

 

I have not hardcoded this value anywhere, how to fix this ?

0
7 comments

Check what path is stored in .idea/gradle.xml and adjust it: https://youtrack.jetbrains.com/issue/IDEA-176912#comment=27-2346806.

Report a bug at https://youtrack.jetbrains.com/issues/IDEA with a sample project and the steps to reproduce.

0

Hey Serge,

I've update original issue with screen shot, can you please re-check,

Thanks,

Vikram

0

Did you check .idea/gradle.xml for the paths?

0

Thanks Serge, idea/gradle.xml had the old name, after changing it manually it worked well.

I'll go ahead and file an issue for this

0

now I'm trying to run test case and it is pointing to older directory structure, where else I need to update paths ?

I did gradle refresh and it succeeded but test case run is failing

0

Check the run/debug configuration.

0

Thanks for the help, both issues are resolved.

0

Please sign in to leave a comment.