22 Feb
22Feb
  • Close Android Studio
  • Change project root directory name
  • Open Android Studio
  • Open the project (not from local history but by browsing to it)
  • Clean project
  • If your settings.gradle contains the below line, either delete it or update it to the new name.
rootProject.name = 'Your old project name'
  • A new *.iml file will then be created, the old one(s) can safely be deleted.
  • Change app_name in strings.xml (if exists), otherwise it will build the APK with the old name.

Last tested on

Android Studio 3.5.3 (Feb 2020)


Link / Source

Stackoverflow

Comments
* The email will not be published on the website.