Adding external library in Android studio

前端 未结 19 1320
面向向阳花
面向向阳花 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:27

    There are two simplest ways if one does not work please try the other one.

    1. Add dependency of the library inside dependency inside build.gradle file of the library you are using, and paste your library in External Libraries.

    OR

    1. Just Go to your libs folder inside app folder and paste all your .jar e.g Library files there, Now the trick here is that now go inside settings.gradle file now add this line include ':app:libs' after include ':app' it will definitely work.

提交回复
热议问题