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
+8.1k Golang : Handle Palindrome string with case sensitivity and unicode
+22.3k Golang : Securing password with salt
+18.1k Golang : Qt image viewer example
+7k Fix sudo yum hang problem with no output or error messages
+17.2k Golang : XML to JSON example
+5.5k Golang : Display advertisement images or strings on random order
+9.9k Golang : Format strings to SEO friendly URL example
+7.6k Golang : How to handle file size larger than available memory panic issue
+9.5k Golang : Play .WAV file from command line
+13.4k Golang : Date and Time formatting
+18.8k Unmarshal/Load CSV record into struct in Go
+5.3k Python : Convert(cast) string to bytes example