Adding external library in Android studio

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

    Android studio doesn't use Maven, it use Gradle, you can open your build.gradle the route should be: /app/build.gradle and add the Gradle dependency that shows on the repo:

    The build.gradle has a dependencies section:

    dependencies {
        //here add your dependency
    }
    

    The repo says that you need to add this dependency:

    compile 'com.foursquare:foursquare-android-oauth:1.0.3'
    

    only add that line to your dependencies on buil.gradle, save the file, and android will rebuild the project, that's all

提交回复
热议问题