Arcore-android-sdk: ARCore with VR dependency issues

Created on 9 Apr 2018  路  9Comments  路  Source: google-ar/arcore-android-sdk

Hello! I would like to report a gradle dependency issue with ARCore:

Repro Steps:

1) Download Just a Line source
2) Add this dependency to your build.gradle

    implementation 'com.google.vr:sdk-videowidget:1.80.0'

3) Sync gradle and build the project

Observe:

Program type already present: com.google.android.aidl.BaseProxy
Message{kind=ERROR, text=Program type already present: com.google.android.aidl.BaseProxy, sources=[Unknown source file], tool name=Optional.of(D8)}
bug

Most helpful comment

Thanks for the easy repro case. Investigating.

All 9 comments

Can you test again after updating the ARCore dependency to 1.1? This should be fixed.

I am getting it on 1.1 with the sample Just a Line project updated to use 1.1

I can send you what I have, but all I changed (I believe, I _may_ have updated gradle) was the notation to not be Hungarian case and those gradle updates. I can confirm when I remove the com.google.vr dependency it works.

This worked for me just fine. Did you try doing a gradle sync? You'll need to update DrawAR.java slightly to catch CameraNotAvailableException on Session.resume().

Hmmm, I will chalk it up to a gradle issue. I have synced and invalidated caches and restarted. I am experiencing this in a production app as well, but honestly, gradle is always doing weird things to me. I confirmed by cloning a fresh copy of my example project and it was fine. 馃憤 Thanks for your time, sorry to bug you with weird gradle issues.

Closing. Feel free to re-open if you can reliably reproduce.

I have this repo for reproducing the problem reliably. I have removed my old project and cloned this one down afresh and the exception is produced. Let me know if you have any problems with reproducing this. In case it matters for reproduction, I am using this version of AS:

Android Studio 3.1.1
Build #AI-173.4697961, built on April 3, 2018
JRE: 1.8.0_152-release-1024-b01 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.12.6

Thanks for the easy repro case. Investigating.

ARCore 1.21 doesn't ship com.google.android.aidl.BaseProxy anymore.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bamsarts picture bamsarts  路  3Comments

dev19872014 picture dev19872014  路  3Comments

arturohernandez10 picture arturohernandez10  路  4Comments

arifnadeem7 picture arifnadeem7  路  5Comments

tangobravo picture tangobravo  路  3Comments