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
+26.2k Golang : Convert IP address string to long ( unsigned 32-bit integer )
+8k Golang : Ways to recover memory during run time.
+10.2k Golang : Edge detection with Sobel method
+12.8k Golang : Remove or trim extra comma from CSV
+8.3k Golang : Find relative luminance or color brightness
+4.7k JavaScript : Rounding number to decimal formats to display currency
+9.1k Golang : Get SPF and DMARC from email headers to fight spam
+4.1k Detect if Google Analytics and Developer Media are loaded properly or not
+15.7k Golang : Convert date format and separator yyyy-mm-dd to dd-mm-yyyy
+8.3k How to show different content from website server when AdBlock is detected?
+18.1k Golang : Get all upper case or lower case characters from string example
+9.7k Golang : How to generate Code 39 barcode?