- Home /
Unable to run unity ARCore as AAR library
Hello
I am trying to build a Unity ARCore application which will be embedded within an existing parent android application. The ARCore project as a standalone is working fine(both as direct apk from Unity and as an apk created from the exported unity android studio project).
When i create a ".aar" library file from the exported unity android studio project and integrate that to the main android application, it does not run, and i get the following error : Missing Unity Engine ARCore support. Please ensure that the Unity project has the 'Player Settings > XR Settings > ARCore Supported' checkbox enabled. .
I have made sure that the "ARcore supported" is enabled in XR settings(also confirmed by the fact the the standalone app is running fine). Also, the unity launch happens correctly from the parent app(i can see my unity UI and start up animations etc.), only ARCore camera does not initialise with the above mentioned error.
Following is the tutorial link i followed to create ".aar" : https://medium.com/@davidbeloosesky/embedded-unity-within-android-app-7061f4f473a
Im using unity 2018.2.16.
Can anyone please give an idea on what might be the cause and what could be done to solve this?
Thank you