java - Guava vs Google Play Services: Build Conflict -
i use guava , googleplayservices in same project. after added guava via gradle, got dex build error. able isolate conflicting culprit googleplayservices. can build using one, or other, not both.
dependencies { compile filetree(dir: 'libs', include: ['*.jar']) compile 'com.google.android.gms:play-services:7.5.0' compile group: 'com.google.guava', name: 'guava', version: '18.0'}
anyone else encounter this? solution appreciated.
i think you've encountered 65k method limit issue.
the easiest fix instead of including whole google play service library, include need. see https://developers.google.com/android/guides/setup#split
for more information regarding 65k issue: see https://www.contentful.com/blog/2014/10/30/android-and-the-dex-64k-methods-limit/
Comments
Post a Comment