Android Studio : Import third-party library or package into Gradle Scripts
A note for Android Studio beginner like myself. Encounter an instruction on Github on how to import a third-party library into Android Studio project. Trouble is, the instruction is just
Gradle
dependencies {
compile 'com.daimajia.numberprogressbar:library:1.4@aar'
}
Ok, so... how to import or compile
the third-party library/package ??
After some 'rookie' trials and errors, the steps are:
In Android Studio, under
Project
, clickGradle Scripts
and click on thebuild.gradle (Module: app)
[position 1]Add the line shown below at [position 2]
compile 'com.daimajia.numberprogressbar:library:1.4@aar'
Hope this helps!
See also : Android Studio : Indicate progression with ProgressBar example
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+13.8k Golang : Force download file example
+28.6k Get client IP Address in Go
+13.2k Golang : How to filter a map's elements for faster lookup
+8.9k Golang : Embed secret text string into binary(executable) file
+31.5k Delete a directory in Go
+10.6k Golang : Clean formatting/indenting or pretty print JSON result
+4.2k Golang : The Tao of importing package
+12.4k Golang : Compress and decompress file with compress/flate example
+5.7k Golang : Fixing Gorilla mux http.FileServer() 404 problem
+17.1k Golang : Read binary file into memory
+4.9k Golang : Function as an argument type example