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.4k Golang : Flip coin example
+6.1k Unix/Linux : Use netstat to find out IP addresses served by your website server
+9k Golang : Create and shuffle deck of cards example
+5.8k Golang : Extract unicode string from another unicode string example
+7k Golang : Use modern ciphers only in secure connection
+5.1k Responsive Google Adsense
+6.2k PHP : Proper way to get UTF-8 character or string length
+15.3k Chrome : ERR_INSECURE_RESPONSE and allow Chrome browser to load insecure content
+6.1k Golang : How to search a list of records or data structures
+19.9k Golang : Check if os.Stdin input data is piped or from terminal
+14.1k Android Studio : Use image as AlertDialog title with custom layout example