I'm using Vuforia Fusion with ARCore 1.6.0. I need to check, if the user has ARCore capable device to enable some ARCore specific functionality. I didn't find a solution using Vuforia SDK so I need to access ARCore library directly. I use following method:
var jc = new AndroidJavaClass("com.google.ar.core"); jc.Call<bool>("ArCoreApk.Availability.isSupported");
This works fine in the Unity editor, however if I run the app on the Android device, it throws "ClassNotFoundException" in the first line. It's like the .aar file (core-1.6.0.aar) where is that class is not included in the build for some reason. I'm not sure what I'm doing wrong here.
Thanks for your tips.