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
+8k Golang : Get all countries phone codes
+8.1k Android Studio : Rating bar example
+15.3k Golang : Find location by IP address and display with Google Map
+18.5k Golang : Send email with attachment
+9.9k Golang : Translate language with language package example
+12k Golang : Save webcamera frames to video file
+11.2k Golang : Intercept and process UNIX signals example
+17.7k Golang : Iterate linked list example
+8.8k Golang : Sort lines of text example
+6.5k Elasticsearch : Shutdown a local node
+24.4k Golang : How to validate URL the right way