I'm still trying to use ARCore for a native Android app in another IDE (Visual Studio) instead of Android Studio. That's why I need to "DIY" numbers of things (like manually add ARCore dependency in my APK package). So far I made some progress but still the AR session creation fails.
First, it gives me the following error message:
System.err: java.lang.RuntimeException: Application manifest must contain meta-data com.google.ar.core.min_apk_version System.err: at com.google.ar.core.SessionCreateJniHelper.getMinApkVersion(SessionCreateJniHelper.java:62) third_party/arcore/ar/core/android/sdk/session_create.cc: Calling getMinApkVersion failed.
I followed the suggestions given in the message and add the following line in AndroidManifest.xml:
<meta-data android:name="com.google.ar.core.min_apk_version" android:value="24"/>
After doing this, the first error is solved, but it gives a new error:
[blaze-out/android-armeabi-v7a-opt/genfiles/third_party/arcore/ar/core/android/arcore_c_shim_function_impls.inc:375] CHECK failed: expression='"false"' Failed to call function: ArSession_createImplementation, this function version: 171127000 is higher than requested min apk version
I can not get rid of this error. Anyone know the reason about it? What's meaning of the function's version is higher than requested min apk version?