# Ar template - issue with AR session\_create

**URL:** <https://forums.unrealengine.com/t/ar-template-issue-with-ar-session-create/257566>\
**Category:** Mobile\
**Tags:** unreal-engine, Android\
**Created:** [October 25, 2021, 1:40pm UTC](https://forums.unrealengine.com/t/ar-template-issue-with-ar-session-create/257566 "2021-10-25T13:40:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_7d65a7ea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7d65a7ea](https://forums.unrealengine.com/u/anonymous_user_7d65a7ea)\
**Post date:** [October 25, 2021, 1:40pm UTC](https://forums.unrealengine.com/t/ar-template-issue-with-ar-session-create/257566/1 "2021-10-25T13:40:10Z")

</div>

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:

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7d65a7ea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7d65a7ea](https://forums.unrealengine.com/u/anonymous_user_7d65a7ea)\
**Post date:** [October 28, 2021, 11:19am UTC](https://forums.unrealengine.com/t/ar-template-issue-with-ar-session-create/257566/2 "2021-10-28T11:19:57Z")

</div>

Nobody has any idea ? still not able to use arcore.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7d65a7ea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7d65a7ea](https://forums.unrealengine.com/u/anonymous_user_7d65a7ea)\
**Post date:** [October 31, 2021, 9:04pm UTC](https://forums.unrealengine.com/t/ar-template-issue-with-ar-session-create/257566/3 "2021-10-31T21:04:19Z")

</div>

The problem remains ☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_7d65a7ea](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_7d65a7ea](https://forums.unrealengine.com/u/anonymous_user_7d65a7ea)\
**Post date:** [November 11, 2021, 2:59pm UTC](https://forums.unrealengine.com/t/ar-template-issue-with-ar-session-create/257566/4 "2021-11-11T14:59:42Z")

</div>

Hello,

Still no lock for me, anyone having similar issue with the Ar template ?

---

<div class="post-metadata">

**Author:** ![H1Gdev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H1Gdev](https://forums.unrealengine.com/u/H1Gdev)\
**Post date:** [April 13, 2022, 8:50am UTC](https://forums.unrealengine.com/t/ar-template-issue-with-ar-session-create/257566/5 "2022-04-13T08:50:04Z")

</div>

I have the same issue…

In UE5, selecting **Begin Scan** didn’t cause anything, and when I tried it in UE4, I got this issue…

AR app created in Unity is working correctly, so ARCore should be working fine.

---

<div class="post-metadata">

**Author:** ![H1Gdev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@H1Gdev](https://forums.unrealengine.com/u/H1Gdev)\
**Post date:** [April 14, 2022, 8:30am UTC](https://forums.unrealengine.com/t/ar-template-issue-with-ar-session-create/257566/6 "2022-04-14T08:30:49Z")

</div>

I solved it this way.

- [Project Settings]-[Platforms]-[Android]
  - UE4.27
    - Uncheck “Support armv7 [aka armeabi-v7a]”
    - Check “Support arm64 [aka arm64-v8a]”

  - UE5.0
    - Uncheck “Support Vulkan”
