How to rename a project in Android Studio

I am currently using Android Studio 1.4.1, the latest version. I would like to distribute my program among my friends, but it was a school finale, so it was called FinalProject. I would like to rename it, however, no matter what I try (even using answers from this site), I cannot do it.

I tried right-clicking the root file on the breadcrumbs, but it says, "Unable to rename the root module." I really don't know what else I can do.

I tried to rename the parts in the idea, build.gradle and AndroidManifest.xml, but this did not work. If I also rename it in the manifest, it breaks the entire manifest.

+5
source share
1 answer

This always works for me, it will change the name of the project, but be careful, it will not rename its internal packages .

  • Close everything on your screen.
  • Find your project using File Explorer (files, Finder, Windows Explorer or even Terminal: $ cd your/path/to/file ).
  • Rename your project using the file explorer (make sure you don’t get inside the project, just find it).
  • Open Android Studio.
  • Import a renamed project.

After that, Android Studio will automatically create all the necessary files.

+14
source

Source: https://habr.com/ru/post/1241673/


All Articles