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.6k Golang : Executing and evaluating nested loop in html template
+13k Golang : Handle or parse date string with Z suffix(RFC3339) example
+8.1k Golang : Add build version and other information in executables
+8.6k Golang : How to join strings?
+14.4k Golang : How to get URL port?
+7.7k Golang : How to feed or take banana with Gorilla Web Toolkit Session package
+12.3k Elastic Search : Return all records (higher than default 10)
+14.4k Golang : Convert(cast) int to float example
+5.2k Javascript : Shuffle or randomize array example
+11.9k Golang : Find and draw contours with OpenCV example
+19.1k Golang : Execute shell command
+13.9k Golang : Google Drive API upload and rename example