Skip to content

How to add aar to your application project

Abbas Momeni edited this page Jan 19, 2016 · 3 revisions

for add aar file

first

you must download this aar file

and then copy it in your libs folder , if not exist create it !

in my case after i downloaded , i copy **ldialogs.aar **into my libs folder .

second

select the build.gradle in app otherwise build.gradle(Module:app)

and add in this block

android { ...

repositories{ flatDir{ dirs 'libs' } } }

after that you must add this line in dependencies

dependencies{ ... compile 'uk.me.lewisdeane.ldialogs:ldialogs@aar' } and sync your project

note that the :ldialogs@aar in dependencies refers to the name of aar file that u added

for more information visit this page