I picked the wrong name of a specific module which I imported to the Gradle project in Android Studio.

As of Android Studio 3.4.1
Rename module
Refactor > RenameRename module and press OKOKsettings.gradle is updated automatically. However, you must manually update any build.gradle dependencies to reflect new module name:dependencies {
// manually update this after renaming the module
implementation project(':newmodulename')
}
Rename package to reflect new module name
Refactor > Renametest or androidTest), a dialog will ask if you want to rename them as well. If so, select Rename packageRefactorDo Refactor in the Refactoring PreviewTip: Select
File > Invalidate Caches / Restartto fix any unresolved resource references caused by renaming a module.