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 ?
Please sign in to leave a comment.
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.
Hey Serge,
I've update original issue with screen shot, can you please re-check,
Thanks,
Vikram
Did you check .idea/gradle.xml for the paths?
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
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
Check the run/debug configuration.
Thanks for the help, both issues are resolved.