Search code examples
androidunity-game-enginearcore

Unity ar.core.depth show unsuppported on device via bundle but works with apk


I have application with AR features, I mostly tested by generating apk and installing on device, and everything works fine, I tested on Galaxy Tab a7. But now I want to publish in google play, I create app bundle, and in bundle explorer it shows that Galaxy Tab A7 is unsupported because of these 2 features:

android.hardware.camera.ar

com.google.ar.core.depth

I tried to set it to required="false" but then I got error:

The ArCore dependency type com.google.ar.core is missing from AndroidManifest.xml, although the meta-data tag com.google.ar.core.min_apk_version has been specified.

But I didn't found any min_apk_version in any files.


Solution

  • For some reason changes in Android Studio didn't help. But when I made changes in

    Unity->Project Settings->XR Plugin Management

    ARCore,ArKit to optional instead required

    And export project for Android Studio, with "Export for App Bundle" option it became fine.

    I uploaded new bundle to Play Console, and list of devices increased.