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
+5.1k Golang : Get FX sentiment from website example
+22.3k Golang : Convert Unix timestamp to UTC timestamp
+13.9k Golang : syscall.Socket example
+7.3k Golang : Get YouTube playlist
+5.1k PHP : Hide PHP version information from curl
+21.9k Golang : Repeat a character by multiple of x factor
+5.6k Golang : Error handling methods
+6.6k Android Studio : Hello World example
+13.4k Golang : Tutorial on loading GOB and PEM files
+7.4k Golang : Mapping Iban to Dunging alphabets
+5.6k Linux : Disable and enable IPv4 forwarding
+13.7k Golang : Get current time