test code :
ArAvailability availability;
ArCoreApk_checkAvailability(env, context, &availability);
if (availability == AR_AVAILABILITY_SUPPORTED_NOT_INSTALLED ||
availability == AR_AVAILABILITY_SUPPORTED_APK_TOO_OLD ||
availability == AR_AVAILABILITY_SUPPORTED_INSTALLED) {
// Show or enable the AR button.
LOGI("OnResume(): ar ability available");
} else {
// Hide or disable the AR button.
LOGI("OnResume(): ar ability not available");
}
first :
set this to optional meta-data android:name="com.google.ar.core" android:value="optional"
the result enter LOGI("OnResume(): ar ability not available");
second :
set val to required meta-data android:name="com.google.ar.core" android:value="required"
LOGI("OnResume(): ar ability available");
VERSIONS USED
Android Studio: Android Studio Electric Eel | 2022.1.1 Patch 2
ARCore SDK for Android: 429ee466244f7f804bea5dd9040c2886ecfc8cec v1.36.0
Device manufacturer, model, and O/S: MI 11 Pro
Google Play Services for AR (ARCore): not install
On macOS, use: adb shell pm dump com.google.ar.core | egrep -i versionName\|packages:
Output of adb shell getprop ro.build.fingerprint:
Xiaomi/mars/mars:13/TKQ1.220829.002/V14.0.6.0.TKACNXM:user/release-keys
STEPS TO REPRODUCE THE ISSUE
as the above first case
I must set My app use ar optional ,but check ability always get UNKNOW_ERROR
I test 2 case
test code : ArAvailability availability; ArCoreApk_checkAvailability(env, context, &availability);
if (availability == AR_AVAILABILITY_SUPPORTED_NOT_INSTALLED || availability == AR_AVAILABILITY_SUPPORTED_APK_TOO_OLD || availability == AR_AVAILABILITY_SUPPORTED_INSTALLED) { // Show or enable the AR button. LOGI("OnResume(): ar ability available"); } else { // Hide or disable the AR button. LOGI("OnResume(): ar ability not available"); }
first :
set this to optional meta-data android:name="com.google.ar.core" android:value="optional" the result enter LOGI("OnResume(): ar ability not available"); second : set val to required meta-data android:name="com.google.ar.core" android:value="required" LOGI("OnResume(): ar ability available");
VERSIONS USED
adb shell pm dump com.google.ar.core | egrep -i versionName\|packages:
adb shell getprop ro.build.fingerprint
: Xiaomi/mars/mars:13/TKQ1.220829.002/V14.0.6.0.TKACNXM:user/release-keysSTEPS TO REPRODUCE THE ISSUE
as the above first case I must set My app use ar optional ,but check ability always get UNKNOW_ERROR
WORKAROUNDS (IF ANY)
ADDITIONAL COMMENTS