简体   繁体   中英

Change the root project name in android studio

I would like to copy my Android project and create a new project from the same files just with a different name and different project. The purpose of this is so I can have a second version of my app which is ad supported.

Copy past your project in new directory and follow this link -> Change project root directory name

Or you can use git and create a new branch of your project.

You can use Git to manage your local project, and Github to create a private project and upload your project there. This is one of the best ways to manage your code and create a new app version.

If you don't want to use them, you may need:

  1. copy all files to a given directory;
  2. change the directory name of your package;
  3. replace all package name in your AS;
  4. change your gradle file of your app to change application id.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM