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
+28k Golang : How to declare kilobyte, megabyte, gigabyte, terabyte and so on?
+18.2k Golang : Example for DSA(Digital Signature Algorithm) package functions
+5.7k Get Facebook friends working in same company
+10.7k Golang : Decompress zlib file example
+5k Facebook : How to force facebook to scrape latest URL link data?
+11.4k Golang : Get absolute path to binary for os.Exec function with exec.LookPath
+20.6k Golang : Setting up/configure AWS credentials with official aws-sdk-go
+10k Golang : Characters limiter example
+4.2k PHP : See installed compiled-in-modules
+53.2k Golang : Unmarshal JSON from http response
+12.5k Golang : Check if an integer is negative or positive
+5k Golang : Function as an argument type example