google-ar / arcore-android-sdk

ARCore SDK for Android Studio
https://developers.google.com/ar
Other
4.91k stars 1.2k forks source link

ArCoreApk_checkAvailability return AR_AVAILABILITY_UNKNOWN_ERROR when set use ar core service to optional #1588

Open 15130140362 opened 1 year ago

15130140362 commented 1 year ago

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

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

WORKAROUNDS (IF ANY)

ADDITIONAL COMMENTS