Android sdk unable to add dependency in gradle

I am new to android devlopment and i am trying to implement beacon in my app .

//beacons sdk
compile ‘com.estimote:sdk:0.9.1@aar’

as soon as i add above dependency in my gradle.
it gives the error:-

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Program Files\Java\jdk1.8.0_65\bin\java.exe'' finished with non-zero exit value 2

please help me to resolve this error …

I did quick googling and it looks like this error may have something to do with the 65K method limit Android has. Once you add Estimote SDK to your app, it goes over and triggers the error.

There are some suggestions on how to work around that here:


https://developer.android.com/intl/ko/tools/building/multidex.html