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
+11.5k Golang : Intercept and process UNIX signals example
+11.8k Golang : Gorilla web tool kit secure cookie example
+9.6k Golang : Web(Javascript) to server-side websocket example
+36.8k Golang : Validate IP address
+6.8k Golang : How to validate ISBN?
+13.3k Golang : Convert(cast) uintptr to string example
+21.3k Golang : Sort and reverse sort a slice of strings
+9.3k Golang : Intercept and compare HTTP response code example
+8k Golang : Lock executable to a specific machine with unique hash of the machine
+18.2k Golang : Qt image viewer example
+9.6k Golang : Scramble and unscramble text message by randomly replacing words
+55.6k Golang : Unmarshal JSON from http response