Error while compiling code

91 views
Skip to first unread message

sandip...@baxi.taxi

unread,
Apr 9, 2016, 3:29:56 AM4/9/16
to CleverTap Support
I used clevertap latest release compile 'com.clevertap.android:clevertap-android-sdk:2.0.9' in gradle file gave error 

Error:Execution failed for task 'Project:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_66.jdk/Contents/Home/bin/java'' finished with non-zero exit value 3

but when I used this compile files('libs/CleverTapAndroidSDK-v2.0.9-20160314.jar') in gradle file it runs successfully.

what is the cause of this error?

CleverTap Support

unread,
Apr 9, 2016, 3:41:11 AM4/9/16
to CleverTap Support
Hello Sandeep,

Thanks for writing in with this, it's an Android limitation, you've surpassed the DEX limit which is 65K methods in your application.

One of our customers faced this in the past, here's how they solved it : https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/clevertap/C8pwihMtnss/Nf5zurHlBwAJ

Thanks,

- Support.

sandip...@baxi.taxi

unread,
Apr 9, 2016, 4:16:43 AM4/9/16
to CleverTap Support
but why compile files('libs/CleverTapAndroidSDK-v2.0.9-20160314.jar') is working for me??

Support

unread,
Apr 10, 2016, 7:17:22 PM4/10/16
to CleverTap Support
Hi Sandeep,

If you compile using gradle, it will automatically compile in the GCM and other dependencies our CleverTap SDK has. If you just compile the JAR file, it will not automatically add these dependencies. 

Hope that clarifies your question.

Thanks,
Support.
Reply all
Reply to author
Forward
0 new messages