Arcore-android-sdk: Duplicate zip entry [classes.jar:com/google/android/aidl/BaseProxy.class

Created on 22 Feb 2018  路  10Comments  路  Source: google-ar/arcore-android-sdk

It looks like I am getting a duplicate zip entry from including both an arcore library and another library. I have tried to exclude BaseProxy but with no luck, there doesn't even exist a documentation page for BaseProxy.

Commenting out the arLibv5 library allows my app the build just fine.

(Duplicate zip entry [classes.jar:com/google/android/aidl/BaseProxy.class]))

implementation (name: 'adobeMobileLibrary-4.13.6', ext: 'jar') 
implementation (name:'arLibv5', ext:'aar') 
bug fixed in upcoming release

Most helpful comment

You could unpack and repack the AAR (reame to .zip, unzip, rename classes.jar to classes.zip, unzip, remove offending files, rezip, rename, rezip, rename).

I can't share any timeline right now but keep your eyes out for more info soon.

All 10 comments

Whoops, yep, that's a bug. Good news is that it's already fixed for for the next release.

Is there a consumer fix for this or an ETA on the release?

You could unpack and repack the AAR (reame to .zip, unzip, rename classes.jar to classes.zip, unzip, remove offending files, rezip, rename, rezip, rename).

I can't share any timeline right now but keep your eyes out for more info soon.

I'm actually not sure what files need to be removed. I am being told that BaseProxy is the issue but I don't know what is including that.

It actually tells you exactly where in the exception:

  • extract arcore_client.aar and open
  • extract classes.jar and open
  • remove com/google/android/aidl/*.class
  • repackage classes.jar
  • repackage arcore_client.aar

So it appears that none of my included jars or aars were the issue, none of them had aidl.

Turns out it was from com.google.vr and adding


        exclude group: 'com.google.android', module: 'aidl'
        exclude group: 'com.google.vr', module: 'sdk-common'

fixes that issue. Would it be worth including this as a bug for the VR lib? There seems to be a bunch of proguard issues I am running into now as well.

Excellent! Leaving open until we fix this properly.

This is fixed in 1.0. Please update your build to load the 1.0.0 AAR from the Google maven repo and you should be able to drop the excludes.

I am stilling running into this problem. I am using arcore-unity-sdk-v1.1.0.untitypackage.

@JudeOsborn If you're using Unity please post over on the Unity issues board.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

RajkumarRepo picture RajkumarRepo  路  3Comments

arturohernandez10 picture arturohernandez10  路  4Comments

tangobravo picture tangobravo  路  3Comments

RegisAG picture RegisAG  路  4Comments

ianyuen picture ianyuen  路  3Comments