Description
I did replaced the unitygar.aar as mentioned. Still I get this error on build. I had installed your Arcore demo apk and ARcore_preview_modified.apk on my device and tested your sample appication, which works great. When I try to build my app it fails @ build dex format. If i keep the orginal "unitygar.aar" it builds successfully but app kicks out saying not compatible device, One i replace with the modified one, the build fails to succeed. My device is Galaxy s8+ SM-G955FD. Please suggest. Thanks
Log:
CommandInvokationFailure: Unable to convert classes into dex format.
/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/bin/java -Xmx2048M -Dcom.android.sdkmanager.toolsdir="/Users/asubramanian/Downloads/adt-bundle-mac-x86_64-20131030/sdk/tools" -Dfile.encoding=UTF8 -jar "/Applications/Unity/PlaybackEngines/AndroidPlayer/Tools/sdktools.jar" -
stderr[
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/unitygar/BuildConfig;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/unitygar/GoogleAR;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/unitygar/GoogleAR$1;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/unity3d/unitygar/GoogleAR$2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tango/TangoClientLibLoader;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tango/TangoJNINative;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tangohelperlib/BuildConfig;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tangoservice/IOnFrameAvailableListener;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Lcom/google/atap/tangoservice/IOnFrameAvailableListener$Stub;
UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:615)
at com.android.dx.command.dexer.Main.runMonoDex(Main.java:313)
at com.android.dx.command.dexer.Main.runDx(Main.java:291)
at com.android.dx.command.dexer.Main.main(Main.java:247)
at com.android.dx.command.Main.main(Main.java:94)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at SDKMain.main(SDKMain.java:130)
Caused by: java.lang.InterruptedException: Too many errors
at com.android.dx.command.dexer.Main.processAllFiles(Main.java:607)
... 9 more
]
stdout[
ignored resource /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/libtango_3d_reconstruction_api/libs/./armeabi-v7a/libtango_3d_reconstruction.so
ignored resource /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/libtango_3d_reconstruction_api/libs/./armeabi-v7a/libtango_unity_3dr_shim.so
processing archive /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/libtango_3d_reconstruction_api/libs/./classes.jar...
ignored resource META-INF/
ignored resource META-INF/MANIFEST.MF
processing archive /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/lighting_estimation/libs/./classes.jar...
processing com/google/ar/core/BuildConfig.class...
processing com/google/ar/core/LightingEstimation.class...
processing com/google/ar/core/LightingEstimation$1.class...
processing com/google/ar/core/LightingEstimation$2.class...
processing com/google/ar/core/LightingEstimation$ByteSamplerCallback.class...
processing archive /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/unityandroidpermissions/libs/./classes.jar...
processing com/example/unityandroidpermissions/BuildConfig.class...
processing com/unity3d/player/UnityAndroidPermissions.class...
processing com/unity3d/player/UnityAndroidPermissions$1.class...
processing com/unity3d/player/UnityAndroidPermissions$IPermissionRequestResult.class...
ignored resource /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/unitygar/libs/./.DS_Store
ignored resource /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/unitygar/libs/./armeabi-v7a/.DS_Store
ignored resource /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/unitygar/libs/./armeabi-v7a/libtango_client_api2.so
ignored resource /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/unitygar/libs/./armeabi-v7a/libtango_client_api2.so.meta
processing archive /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/unitygar/libs/./classes.jar...
processing com/unity3d/unitygar/BuildConfig.class...
processing com/unity3d/unitygar/GoogleAR.class...
processing com/unity3d/unitygar/GoogleAR$1.class...
processing com/unity3d/unitygar/GoogleAR$2.class...
processing archive /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/unitygar/libs/./tango_java_lib.jar...
ignored resource .DS_Store
ignored resource META-INF/
ignored resource META-INF/MANIFEST.MF
ignored resource com/
ignored resource com/.DS_Store
ignored resource com/google/
ignored resource com/google/.DS_Store
ignored resource com/google/atap/
ignored resource com/google/atap/.DS_Store
ignored resource com/google/atap/tango/
processing com/google/atap/tango/TangoClientLibLoader.class...
processing com/google/atap/tango/TangoJNINative.class...
ignored resource com/google/atap/tangohelperlib/
processing com/google/atap/tangohelperlib/BuildConfig.class...
ignored resource com/google/atap/tangoservice/
processing com/google/atap/tangoservice/IOnFrameAvailableListener.class...
processing com/google/atap/tangoservice/IOnFrameAvailableListener$Stub.class...
processing com/google/atap/tangoservice/IOnFrameAvailableListener$Stub$Proxy.class...
processing com/google/atap/tangoservice/IOnImageAvailableListener.class...
processing com/google/atap/tangoservice/IOnImageAvailableListener$Stub.class...
processing com/google/atap/tangoservice/IOnImageAvailableListener$Stub$Proxy.class...
processing com/google/atap/tangoservice/ITango.class...
processing com/google/atap/tangoservice/ITango$Stub.class...
processing com/google/atap/tangoservice/ITango$Stub$Proxy.class...
processing com/google/atap/tangoservice/ITangoListener.class...
processing com/google/atap/tangoservice/ITangoListener$Stub.class...
processing com/google/atap/tangoservice/ITangoListener$Stub$Proxy.class...
processing com/google/atap/tangoservice/ITangoVhs.class...
processing com/google/atap/tangoservice/ITangoVhs$Stub.class...
processing com/google/atap/tangoservice/ITangoVhs$Stub$Proxy.class...
processing com/google/atap/tangoservice/SupportedDevices.class...
processing com/google/atap/tangoservice/Tango.class...
processing com/google/atap/tangoservice/Tango$1.class...
processing com/google/atap/tangoservice/Tango$2.class...
processing com/google/atap/tangoservice/Tango$3.class...
processing com/google/atap/tangoservice/Tango$4.class...
processing com/google/atap/tangoservice/Tango$5.class...
processing com/google/atap/tangoservice/Tango$6.class...
processing com/google/atap/tangoservice/Tango$FoiListener.class...
processing com/google/atap/tangoservice/Tango$OnFrameAvailableListener.class...
processing com/google/atap/tangoservice/Tango$OnTangoUpdateListener.class...
processing com/google/atap/tangoservice/Tango$TangoUpdateCallback.class...
processing com/google/atap/tangoservice/TangoAreaDescriptionMetaData.class...
processing com/google/atap/tangoservice/TangoAreaDescriptionMetaData$1.class...
processing com/google/atap/tangoservice/TangoCameraIntrinsics.class...
processing com/google/atap/tangoservice/TangoCameraIntrinsics$1.class...
processing com/google/atap/tangoservice/TangoCameraMetadata.class...
processing com/google/atap/tangoservice/TangoCameraMetadata$1.class...
processing com/google/atap/tangoservice/TangoCameraNativeLoader.class...
processing com/google/atap/tangoservice/TangoCameraPreview.class...
processing com/google/atap/tangoservice/TangoCameraPreview$MainRenderer.class...
processing com/google/atap/tangoservice/TangoConfig.class...
processing com/google/atap/tangoservice/TangoConfig$1.class...
processing com/google/atap/tangoservice/TangoCoordinateFramePair.class...
processing com/google/atap/tangoservice/TangoCoordinateFramePair$1.class...
processing com/google/atap/tangoservice/TangoErrorException.class...
processing com/google/atap/tangoservice/TangoEvent.class...
processing com/google/atap/tangoservice/TangoEvent$1.class...
processing com/google/atap/tangoservice/TangoException.class...
processing com/google/atap/tangoservice/TangoFoiResult.class...
processing com/google/atap/tangoservice/TangoImage.class...
processing com/google/atap/tangoservice/TangoImage$1.class...
processing com/google/atap/tangoservice/TangoInvalidException.class...
processing com/google/atap/tangoservice/TangoNoAdfPermissionException.class...
processing com/google/atap/tangoservice/TangoNoCameraPermissionException.class...
processing com/google/atap/tangoservice/TangoNoDatasetPermissionException.class...
processing com/google/atap/tangoservice/TangoOutOfDateException.class...
processing com/google/atap/tangoservice/TangoPointCloudData.class...
processing com/google/atap/tangoservice/TangoPointCloudData$1.class...
processing com/google/atap/tangoservice/TangoPoseData.class...
processing com/google/atap/tangoservice/TangoPoseData$1.class...
processing com/google/atap/tangoservice/TangoTextureCameraPreview.class...
processing com/google/atap/tangoservice/TangoTransformation.class...
processing com/google/atap/tangoservice/TangoTransformation$1.class...
processing com/google/atap/tangoservice/TangoVhs.class...
processing com/google/atap/tangoservice/TangoVhs$1.class...
processing com/google/atap/tangoservice/TangoXyzIjData.class...
processing com/google/atap/tangoservice/TangoXyzIjData$1.class...
processing com/google/atap/tangoservice/TextureRenderer.class...
ignored resource com/google/atap/tangoservice/experimental/
processing com/google/atap/tangoservice/experimental/TangoCloudEventKeys.class...
processing com/google/atap/tangoservice/experimental/TangoFrameOfInterest.class...
processing com/google/atap/tangoservice/experimental/TangoImageBuffer.class...
processing com/google/atap/tangoservice/experimental/TangoPlaneData.class...
processing com/google/atap/tangoservice/experimental/TangoPlaneData$1.class...
ignored resource com/google/atap/tangoservice/fois/
processing com/google/atap/tangoservice/fois/FoiRequest.class...
processing com/google/atap/tangoservice/fois/FoiRequest$1.class...
processing com/google/atap/tangoservice/fois/FoiRequest$2.class...
processing com/google/atap/tangoservice/fois/FoiRequest$Create.class...
processing com/google/atap/tangoservice/fois/FoiRequest$Delete.class...
processing com/google/atap/tangoservice/fois/FoiRequest$Load.class...
processing com/google/atap/tangoservice/fois/FoiRequest$Type.class...
processing com/google/atap/tangoservice/fois/FoiResponse.class...
processing com/google/atap/tangoservice/fois/FoiResponse$1.class...
processing com/google/atap/tangoservice/fois/FoiResponse$2.class...
processing com/google/atap/tangoservice/fois/FoiResponse$Create.class...
processing com/google/atap/tangoservice/fois/FoiResponse$Delete.class...
processing com/google/atap/tangoservice/fois/FoiResponse$Load.class...
ignored resource com/google/tango/
ignored resource com/google/tango/.DS_Store
ignored resource com/google/tango/loader/
processing com/google/tango/loader/IObjectWrapper.class...
processing com/google/tango/loader/IObjectWrapper$Stub.class...
processing com/google/tango/loader/IObjectWrapper$Stub$Proxy.class...
processing com/google/tango/loader/ITangoCameraNative.class...
processing com/google/tango/loader/ITangoCameraNative$Stub.class...
processing com/google/tango/loader/ITangoCameraNative$Stub$Proxy.class...
processing com/google/tango/loader/ObjectWrapper.class...
ignored resource /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/xunitygar/libs/./.DS_Store
ignored resource /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/xunitygar/libs/./armeabi-v7a/.DS_Store
ignored resource /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/xunitygar/libs/./armeabi-v7a/libtango_client_api2.so
processing archive /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/xunitygar/libs/./classes.jar...
processing com/unity3d/unitygar/BuildConfig.class...
processing com/unity3d/unitygar/GoogleAR.class...
processing com/unity3d/unitygar/GoogleAR$1.class...
processing com/unity3d/unitygar/GoogleAR$2.class...
processing archive /Users/asubramanian/Perforce/asubramanian_popcap_workspace/depot/games/BejBlitz/bjbPvP/ARCore_Demo2/Temp/StagingArea/android-libraries/xunitygar/libs/./tango_java_lib.jar...
processing com/google/atap/tango/TangoClientLibLoader.class...
processing com/google/atap/tango/TangoJNINative.class...
processing com/google/atap/tangohelperlib/BuildConfig.class...
processing com/google/atap/tangoservice/IOnFrameAvailableListener.class...
processing com/google/atap/tangoservice/IOnFrameAvailableListener$Stub.class...
processing com/google/atap/tangoservice/IOnFrameAvailableListener$Stub$Proxy.class...
processing com/google/atap/tangoservice/IOnImageAvailableListener.class...
processing com/google/atap/tangoservice/IOnImageAvailableListener$Stub.class...
processing com/google/atap/tangoservice/IOnImageAvailableListener$Stub$Proxy.class...
processing com/google/atap/tangoservice/ITango.class...
processing com/google/atap/tangoservice/ITango$Stub.class...
processing com/google/atap/tangoservice/ITango$Stub$Proxy.class...
processing com/google/atap/tangoservice/ITangoListener.class...
processing com/google/atap/tangoservice/ITangoListener$Stub.class...
processing com/google/atap/tangoservice/ITangoListener$Stub$Proxy.class...
processing com/google/atap/tangoservice/ITangoVhs.class...
processing com/google/atap/tangoservice/ITangoVhs$Stub.class...
processing com/google/atap/tangoservice/ITangoVhs$Stub$Proxy.class...
processing com/google/atap/tangoservice/SupportedDevices.class...
processing com/google/atap/tangoservice/Tango.class...
processing com/google/atap/tangoservice/Tango$1.class...
processing com/google/atap/tangoservice/Tango$2.class...
processing com/google/atap/tangoservice/Tango$3.class...
processing com/google/atap/tangoservice/Tango$4.class...
processing com/google/atap/tangoservice/Tango$5.class...
processing com/google/atap/tangoservice/Tango$6.class...
processing com/google/atap/tangoservice/Tango$FoiListener.class...
processing com/google/atap/tangoservice/Tango$OnFrameAvailableListener.class...
processing com/google/atap/tangoservice/Tango$OnTangoUpdateListener.class...
processing com/google/atap/tangoservice/Tango$TangoUpdateCallback.class...
processing com/google/atap/tangoservice/TangoAreaDescriptionMetaData.class...
processing com/google/atap/tangoservice/TangoAreaDescriptionMetaData$1.class...
processing com/google/atap/tangoservice/TangoCameraIntrinsics.class...
processing com/google/atap/tangoservice/TangoCameraIntrinsics$1.class...
processing com/google/atap/tangoservice/TangoCameraMetadata.class...
processing com/google/atap/tangoservice/TangoCameraMetadata$1.class...
processing com/google/atap/tangoservice/TangoCameraNativeLoader.class...
processing com/google/atap/tangoservice/TangoCameraPreview.class...
processing com/google/atap/tangoservice/TangoCameraPreview$MainRenderer.class...
processing com/google/atap/tangoservice/TangoConfig.class