Android Studio: “new module -> import existing project” vs. “import module”

后端 未结 6 1114
陌清茗
陌清茗 2021-01-04 06:14

What I have:

Four independently working Android modules:

  1. MyProjectMainModule, a main container application, attached to MyProje

6条回答
  •  醉酒成梦
    2021-01-04 06:49

    For Adding Module into Android Studio

    1. File>>New>>Import Module>>select module, click on finish

    2. Goto settings.gradle file and add the module name as below separated by comma i.e. include ':app', ':payUMoneysdk'

    3. Now module is added in the project see in the app root folder.

    4. Goto project setting and click on dependencies click on the plus (+) symbol and choose the module, click on ok.

    5. The following module is added in the build.gradle with name implementation project(':payUMoneysdk')

    Here i am sharing the image for your reference... i added PayUmoney and Mobilehelpsdk modules in my project its working properly..

提交回复
热议问题