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
+29.9k Golang : Example for ECDSA(Elliptic Curve Digital Signature Algorithm) package functions
+23.2k Golang : GORM read from database example
+13.4k Golang : package is not in GOROOT during compilation
+10k Golang : Fix fmt.Scanf() on Windows will scan input twice problem
+15.6k Golang : Get own process identifier
+6.4k Golang : Example of how to detect which type of script a word belongs to
+3.7k Golang : How to pass data between controllers with JSON Web Token
+7.3k Swift : Convert (cast) Character to Integer?
+10k Golang : Proper way to test CIDR membership of an IP 4 or 6 address example
+11.2k Golang : Validate email address
+8.1k Golang : Create and shuffle deck of cards example
+7.7k nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)