How to download libraries in Android Studio?

前端 未结 4 796
感情败类
感情败类 2021-01-16 17:42

Whenever I have to add certain library from the internet to my Android project, I add them inside the dependencies in the app level gradle script and it downloads the librar

4条回答
  •  北荒
    北荒 (楼主)
    2021-01-16 18:34

    Put library's jar file inside libs folder. Add this line in module level build.gradle (if not present):

    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
         // Other libraries
    }
    

提交回复
热议问题