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
+9.7k Golang : Get UDP client IP address and differentiate clients by port number
+5.1k AWS S3 : Prevent Hotlinking policy
+9.1k CodeIgniter : Load different view for mobile devices
+9.5k Golang : Select region of interest with mouse click and crop from image
+11.2k Golang : Add ASCII art to command line application launching process
+6.3k Golang : Example of custom handler for Gorilla's Path usage.
+13.6k Golang : Normalize unicode strings for comparison purpose
+17.9k Golang : How to make function callback or pass value from function as parameter?
+8.9k Golang : Check a web page existence with HEAD request example
+4.3k Python : Convert(cast) string to bytes example
+7.1k Golang : Multiplexer with net/http and map
+7.2k Golang : Emulate NumPy way of creating matrix example