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
+18.8k Golang : convert int to string
+9.5k Android Studio : Indicate progression with ProgressBar example
+25.7k Golang : How to write CSV data to file
+22.2k Golang : Repeat a character by multiple of x factor
+9.1k Golang : How to use Gorilla webtoolkit context package properly
+11.4k Golang : Fix fmt.Scanf() on Windows will scan input twice problem
+8.8k Golang : Heap sort example
+15.3k Golang : Get query string value on a POST request
+5.1k Swift : Convert (cast) Float to Int or Int32 value
+26.7k Golang : Encrypt and decrypt data with AES crypto
+7.2k Golang : Get environment variable
+13.9k Golang : convert(cast) string to float value