How do I add a library project to Android Studio?

前端 未结 30 3697
梦谈多话
梦谈多话 2020-11-21 04:24

How do I add a library project (such as Sherlock ABS) to Android Studio?

(Not to the old ADT Eclipse-based bundle, but to the new Android Studio.)

30条回答
  •  南笙
    南笙 (楼主)
    2020-11-21 04:51

    Simply import the Android library project as a module and in Build.gradle.

    Apply plugin: 'com.android.library'

    After that, follow these steps:

    1. Right click on Module & select open Module settings
    2. Select dependencies, click on +, select library dependencies, and add the previously imported module.

提交回复
热议问题