07-21-2023, 09:59 PM
Just found out the easier way to do that all stuffs. You can open the `.idea/modules.xml` folder in your root project folder. it will looks like something like this
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/your_project_name.iml" filepath="$PROJECT_DIR$/your_project_name.iml" />
</modules>
</component>
</project>
add this module below the existing module
<module fileurl="file://$PROJECT_DIR$/android/your_project_name_android.iml" filepath="$PROJECT_DIR$/android/your_project_name_android.iml" />
then it will look like this
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/your_project_name.iml" filepath="$PROJECT_DIR$/your_project_name.iml" />
<module fileurl="file://$PROJECT_DIR$/android/your_project_name_android.iml" filepath="$PROJECT_DIR$/android/your_project_name_android.iml" />
</modules>
</component>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/your_project_name.iml" filepath="$PROJECT_DIR$/your_project_name.iml" />
</modules>
</component>
</project>
add this module below the existing module
<module fileurl="file://$PROJECT_DIR$/android/your_project_name_android.iml" filepath="$PROJECT_DIR$/android/your_project_name_android.iml" />
then it will look like this
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/your_project_name.iml" filepath="$PROJECT_DIR$/your_project_name.iml" />
<module fileurl="file://$PROJECT_DIR$/android/your_project_name_android.iml" filepath="$PROJECT_DIR$/android/your_project_name_android.iml" />
</modules>
</component>
</project>