Adding external library in Android studio

前端 未结 19 1421
面向向阳花
面向向阳花 2020-11-22 05:51

I want to add external library https://github.com/foursquare/foursquare-android-oauth to my Android application (I use Android Studio, the instructions provided by lib autho

19条回答
  •  無奈伤痛
    2020-11-22 06:34

    Any other way to import this lib? I can simply copy-paste source code into my source or create JAR out of it?

    Complete Steps for importing a library in Android Studio 1.1

    1. Goto File -> Import Module.
    2. Source Directory -> Browse the project path.
    3. Specify the Module Name
    4. Open build.gradle (Module:app) file
    5. Add the following line with your module name

      compile project(':internal_project_name')

    Taken from: how to add library in Android Studio

提交回复
热议问题