Unable to import in android studio -


i new android studio. know how work in eclipse. downloaded sweet alert library android here.

but unable import because of lack of experience in android studio. can guide me import step step? don't know maven/gradle , how add aar dependency, mentioned on website.

add following lines build.gradle file:

repositories {     mavencentral() }  dependencies {     compile 'cn.pedant.sweetalert:library:1.3' } 

the first block makes gradle aware of maven repository. second block shorthand including library in "compile" build step.

further sugest read gradle docs here: gradle plugin user guide


Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -