How to use a library project in android studio

后端 未结 4 1933
自闭症患者
自闭症患者 2020-12-01 01:56

I have been trying to add this library project to my existing project in Android Studio. It\'s the first time I am going to use a library project and I am having tough time.

4条回答
  •  我在风中等你
    2020-12-01 02:37

    I did it this way ,

    1. go to project Structure from File menu
    2. Select modules from the left pane
    3. press on `+'
    4. complete the new module wizard steps Make sure to make the module package name same as the module you want to add
    5. again open Project structure as in step 1
    6. select your project from the module list and on the right select dependencies
    7. Click on the + icon from right
    8. select module dependency and then select the newly added module.
    9. copy files of the library project to the new directory created as module
    10. Done

    Step 1:

    step 1

    Step 2:

    Step 2!

    Step 3:

    Step 3

    Step 4:

    **Step 4:**

    ....

    Step 6 & 7:

    enter image description here

    Step 8: enter image description here

提交回复
热议问题