If your project is file based, you cannot rename the project from within IDEA.
Convert your project to a directory based format, and then you will have the option to rename it under "File > Project Structure > Project > Project Name".
I have tried all above solutions but the solution that worked for me is, renaming the folder manually after closing the IDE. Once it is renamed, it is all good to show the new project name.