Hello,
I am trying to run the Ar template on my android device.
I am able to build, package and start the app. However once I click on the button “start scanning”, I get asked for the permission. I accept and after a while the application crash. I use ue4 4.27 with ndk r22b, android-26. I tried rebuild with different ndk and android version but the problem remains.
The stack trace is:
[2021.10.25-13.00.21:624][ 66]LogGoogleARCoreAPI: Error: ArSession_create returns with error: -2
LogPlayLevel: Warning: 10-25 15:00:21.624 25901 25943 D UE4 : [2021.10.25-13.00.21:624][ 66]LogOutputDevice: Warning:
LogPlayLevel: 10-25 15:00:21.624 25901 25943 D UE4 :
LogPlayLevel: 10-25 15:00:21.624 25901 25943 D UE4 : Script Stack (0 frames):
LogPlayLevel: 10-25 15:00:21.624 25901 25943 D UE4 :
LogPlayLevel: 10-25 15:00:21.624 25901 25943 D UE4 : Ensure condition failed: false [File:D:/Build/++UE4/Sync/Engine/Plugins/Runtime/AR/Google/GoogleARCore/Source/GoogleARCoreBase/Private/GoogleARCoreDevice.cpp] [Line: 487]
LogPlayLevel: 10-25 15:00:21.624 25901 25943 D UE4 : Failed to create ARCore session with error status: -2
LogPlayLevel: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogStats: FPlatformStackWalk::StackWalkAndDump - 0.029 s
LogPlayLevel: Error: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogOutputDevice: Error: === Handled ensure: ===
LogPlayLevel: Error: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogOutputDevice: Error:
LogPlayLevel: Error: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogOutputDevice: Error: Ensure condition failed: false [File:D:/Build/++UE4/Sync/Engine/Plugins/Runtime/AR/Google/GoogleARCore/Source/GoogleARCoreBase/Private/GoogleARCoreDevice.cpp] [Line: 487]
LogPlayLevel: Error: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogOutputDevice: Error: Failed to create ARCore session with error status: -2
LogPlayLevel: Error: 10-25 15:00:21.654 25901 25943 D UE4 : [2021.10.25-13.00.21:654][ 66]LogOutputDevice: Error: Stack: