How does Android studio delete a project module

When you want to delete a module in Android studio, select the module in Android studio and right-click to find that there is no delete, as shown in the figure: @ h_ 404_ 1@

@H_ 404_ 1@@H_ 404_ 1@

Android Studio provides a protection mechanism for modules. Modules cannot be deleted at will. To delete them, you must first remove them from the module list@ H_ 404_ 1@

There are two ways to remove: @ h_ 404_ 1@

1. Under the file menu, project structure... Select the module you want to remove, and then press the red '-' button. At this time, it is only deleted from the Android studio directory structure, not from the hard disk. If this module really doesn't want to be deleted, you can go to the project directory and delete the corresponding project folder@ H_ 404_ 1@

@H_ 404_ 1@@H_ 404_ 1@

@H_ 404_ 1@@H_ 404_ 1@

2. Directly edit settings.gradle. Of course, this method is not very recommended, because sometimes you will find that after you edit it, click sync gradle (circled in the figure), of course, sometimes it will automatically sync, and it will always be in gradle sync state. This reason is actually a problem of the network@ H_ 404_ 1@

@H_ 404_ 1@@H_ 404_ 1@

The above is the whole content of this article. I hope the content of this article can bring some help to your study or work. At the same time, I also hope to support a lot of programming tips@ H_ 404_ 1@

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>