Java.util.zip.ZipException: duplicate entry: com/google/common/base/FinalizableReference.class

天大地大妈咪最大 提交于 2019-11-29 07:35:23

Finally problem is solved. Seems like its a bug google resolved this issue in updated version.

Use play Service Version 11.0.1

In project level gradle use

classpath 'com.google.gms:google-services:3.1.0'

Sometimes, this issue happens because of including different version of play-services (or some other libraries). Have a look at app dependencies using below:

gradle app:dependencies

or if you are using Gradle wrapper

./gradlew app:dependencies

There might be some other third party library that is using an older version of library. If that is the case, exclude the older library from the third party library and include the latest one.

You can do something like this:

compile ('com.thirdpartylib.android:library-sdk:8.3.0') {
        exclude group: 'com.android.support', module: 'support-v4'
        exclude group: 'com.android.support', module: 'support-annotations'
        exclude group: 'com.google.android.gms', module: 'play-services-gcm'
        compile 'com.android.support:support-v4:26.0.0'
        compile 'com.android.support:support-annotations:26.0.0'
        compile 'com.google.android.gms:play-services-gcm:11.2.0'
    }

This should resolve any duplicate entry, the main reason for the issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!