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
+10.1k Golang : Get terminal width and height example
+3.4k Unix/Linux : How to pipe/save output of a command to file?
+16.9k Golang : Read input from console line
+6.7k Golang : Implementing class(object-oriented programming style)
+7.6k Golang : Web(Javascript) to server-side websocket example
+9.1k Golang : Fix fmt.Scanf() on Windows will scan input twice problem
+3.5k Golang : Convert lines of string into list for delete and insert operation
+4.4k Golang : How to verify input is rune?
+6k Javascript : How to check a browser's Do Not Track status?
+7.4k Golang : How to generate Code 39 barcode?
+66.3k Golang : How to return HTTP status code?
+36k Golang : UDP client server read write example