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
+9.2k Golang : Print UTF-8 fonts on image example
+3.1k Linux : sudo yum updates not working
+26.7k Golang : Generate random string
+29.6k Golang : Save image to PNG, JPEG or GIF format.
+4k Golang : Use NLP to get sentences for each paragraph example
+6.4k Golang : Metaprogramming example of wrapping a function
+6.4k Golang : How to join strings?
+5.3k Golang : Of hash table and hash map
+5.2k Golang : Dealing with struct's private part
+6.8k Golang : How to check if a string with spaces in between is numeric?
+5.2k Golang : Fibonacci number generator examples
+4k Unix/Linux : How to open tar.gz file ?