How to download libraries in Android Studio?

前端 未结 4 794
感情败类
感情败类 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:29

    Find the gradle dependency for your library and put it in dependencies of your build.gradle file. For Example,

        dependencies {
            // other dependencies
            compile 'com.google.code.gson:gson:2.6.2'
        }
    

    and then build the gradle file.

提交回复
热议问题