Pixel 4a - Can't find ARCore even though it says it's already downloaded

Viewed 526

Pixel 4a comes with ARCore and is on the list of supported devices

https://developers.google.com/ar/discover/supported-devices

However when I'm trying to load the ArFragment

 <fragment
            android:id="@+id/ar_fragment"
            android:name="com.google.ar.sceneform.ux.ArFragment"
            android:layout_width="match_parent"
            android:layout_height="match_parent" />

It keeps prompting me to download ARCore and when I go try to find ARCore in the playstore, it's not there.

Can't seem to find any info about this issue googling it.

2 Answers

My targetSdkVersion was 30, after changing it to targetSdkVersion 29 the ARcore library was being detected.

Your issue might be related to the fact that Sceneform is not compatible with the latest target SDK version (30)

Sceneform was targeting ARCore 1.16 when it was archived while ARCore current version is 1.27!

Since ARCore has it own decoupled Service installed on the device: Google Play Services for AR

Just like for Google Play Services, there is a time when old applications targeting old versions of the service don't work anymore.

See AR sceneform activity crashes for another example of a crash looking like yours (also related to this Sceneform issue).

Your alternatives to Sceneform include:

  • ARCore SDK for Android: Scratch Sceneform and work directly with ARCore, but that would require you to work with OpenGL.
  • Google ARCore SDK for Unity: If you know about Unity
  • Sceneform Maintained Android SDK: [a repository which I maintain] Based on Sceneform with latest compatibly and functionalities from Android (including androidx**), ARCore and Filament. Currently a small community is working on it to keep it up to date and to develop new features.

⠀⠀⠀⠀Quoted from Sceada's answer to: "Sceneform Dependencies for 1.16.0 (Not AndroidX Compatible)", copyright 2021-10-11, which has been modified to indicate that I maintain Sceneform Maintained Android SDK.

I also suggest you to have a look at the article I wrote, Make an Android AR app in 2022, which gives an overview of Sceneform Maintained Android SDK, the Sceneform alternative I maintain.

Related