Start a new topic
Solved

Android crash setLightEstimationMode

Hi,
I'm using Wikitude SDK on an Android Xamarin App.
I've installed Xamarin.Wikitude.SDK.JS version 8.6.0 nuget package.

In my project I have 2 wikitude experience: imageOntarget and 3dmodelsandgesturetracking. The first one works without any problem, but the second one crashes on startup. It seems something related to setLightEstimationMode but I cant't understand what causes the problem. I attach the console output.

I'm running the example 05_InstantTracking_3_Interactivity on Samsung Galaxy S8


No pending exception expected: java.lang.NoSuchMethodError: No virtual method setLightEstimationMode(Lcom/google/ar/core/Config$LightEstimationMode;)V in class Lcom/google/ar/core/Config; or its super classes (declaration of 'com.google.ar.core.Config' appears in /data/app/XXXXXXXXXXXXXXXX-2o7U_ByKTJBW9vPIXZeXHA==/base.apk)

at com.google.ar.core.Config com.wikitude.common.arcore.internal.ArCoreTracker.k() (SourceFile:462)

at void com.wikitude.common.arcore.internal.ArCoreTracker.a() (SourceFile:177)

at void com.wikitude.common.arcore.internal.NativeArCoreInterface.start() (SourceFile:42)

at void com.wikitude.common.camera.internal.NativeCameraInterface.nativeCameraReleased(long) (SourceFile:-2)

at void com.wikitude.common.camera.internal.NativeCameraInterface.b() (SourceFile:194)

at void com.wikitude.common.camera.internal.DeviceCamera2.l() (SourceFile:368)

at void com.wikitude.common.camera.internal.d.b() (SourceFile:85)

at void com.wikitude.common.camera.internal.NativeCameraInterface.doStop() (SourceFile:37)

at void com.wikitude.architect.PlatformBridge.callAsyncImplInternal(long, java.lang.String) (SourceFile:-2)

at void com.wikitude.architect.PlatformBridge.callAsyncImpl(java.lang.String) (SourceFile:134)

at void com.wikitude.architect.PlatformBridge$a.a(java.util.List, int) (SourceFile:66)

at void com.wikitude.architect.PlatformBridge$a.run() (SourceFile:40)

Thanks in advance

1 Comment

I've found out! The problem was the package Xamarin.Google.ARCore used to check if device supports AR and user had installed ARCore. This plugin conflicts with Wikitude SDK so after removing it, Wikitude AR started working

Login or Signup to post a comment