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
+19.3k Golang : Delete item from slice based on index/key position
+11.4k Golang : How to use if, eq and print properly in html template
+12.3k Golang : calculate elapsed run time
+48.3k Golang : How to convert JSON string to map and slice
+11.1k Golang : Replace a parameter's value inside a configuration file example
+12.4k Golang : Get month name from date example
+5.4k Golang : Generate Interleaved 2 inch by 5 inch barcode
+10k Golang : Translate language with language package example
+14.9k Golang : Get URI segments by number and assign as variable example
+43.8k Golang : Get hardware information such as disk, memory and CPU usage
+6.4k Golang : Extract sub-strings
+10.7k Fix ERROR 1045 (28000): Access denied for user 'root'@'ip-address' (using password: YES)