How to change the name of a project and its folder

0

I have created projects with which I'm doing tests, with names like com.HorizontalScrollMenu-master_Documentos_1 , and some somewhat advanced with several java modules, what steps do I have to follow to change the name for example com.Modelos.Documentos ?

On the other hand, the folder where the project is being created on the hard disk, has the name HorizontalScrollMenu-master , when I have changed the name to the folder, and I have executed it again. shows a window with the message:

  

The modules below are not imported from Gradle anymore. Check those to be removed from the ide proect too:

Inside the window marked the option HorizontalScrollMenu-master I do not know very well what consequences it can have to not import is module, and if it is necessary to mark or not the option that shows.

Then when the application is tested it shows this message and it does not let me try the application.

I have not removed anything, I have only changed the name.

I have also tried what in other posts have commented, File > Settings > Build, Execution, Deployment > Instant Run , to remove that option and then put it, but still showing the eror

Edited I think the second part seems to work, I've deleted the file slice_4.apk from that folder, as I'm not sure and you'll tell me what you understand more of this, if it's okay, or if I'm going to find you later with a problem.

Thank you.

    
asked by SoCu 24.12.2017 в 09:13
source

1 answer

0

Do not do that, do not change the external name directly, change it from within android studio, I advise you to put everything back as it was if possible and follow the following steps:

1-Vete a la vista proyecto en android studio.
2-Click derecho en tu proyecto
3-Click en refactor
4-Click en rename
5-Escribe el nombre nuevo y dale a ok

If you would also like to change the name of the package, the process is exactly the same only you will right click on the package that is inside the java module, rename .etc

    
answered by 24.12.2017 в 11:23