Using Google PlusOne button dex

32 Views Asked by At

I want to use a Google Plus one button in my application. In gradle, I have

compile 'com.google.android.gms:play-services:8.3.0'

But since the library huge, I get the error:

Error:The number of method references in a .dex file cannot exceed 64K. Learn how to resolve this issue at https://developer.android.com/tools/building/multidex.html

Is there an easy way using this, just include a smaller library instead of entire :play-services ?

I already looked at stackoverflow other answers to multidex enabling but my question is to do without it.

1

There are 1 best solutions below

0
techtinkerer On

apparently there is no way to solve it other than to enable multiDex