Sceneform-android-sdk: Failed to create AR session

Created on 21 May 2018  路  14Comments  路  Source: google-ar/sceneform-android-sdk

When i first ran hellosceneform , it can normal use.Later i ran it , the "Failed to create AR session" appeared

Most helpful comment

Hi @Zhuxf1111 check if you have this in AndroidManifest.xml inside application tag

        <meta-data
            android:name="com.google.ar.core"
            android:value="required" />

All 14 comments

The device is Samsung Galaxy S7 edge

Hi @Zhuxf1111 check if you have this in AndroidManifest.xml inside application tag

        <meta-data
            android:name="com.google.ar.core"
            android:value="required" />

@KamikX Hi , i checked my AndroidManifest.xml and it contain the codes. I used the demo hellosceneform and it worked fine before.

Hi @Zhuxf1111 can you add anything in the log?
You can get the log from the log monitor window in android studio or via 'adb logcat'

The first things I would check in general if the app is not working include: the version I had installed for ArCore, and the permissions on the app just to make sure camera access is allowed.

Hi @malik-at-work ,I have updated the ArCore version and add the permission on the app .The log is so much and i dont know which of them is you needed.So i attach all of them below

Do any other ArCore applications work or is only Sceneform having an issue? For example try HelloAr https://developers.google.com/ar/develop/unity/tutorials/hello-ar-sample

@Zhuxf1111 - Can you modify SolarActivity.java by adding the catch FatalException clause in onResume?
At line 243, add

      } catch (FatalException ex) {
        android.util.Log.e("SolarSystem", "FatalException creating session: " + ex.getMessage(), ex);
      }

And then share what is printed in the log?

@claywilkinson I reset the mobile phone to factory .Then it works fine.

Glad it is working now!

Same issue I am using an emulator."Failed to create AE session"
emulator version
27.3.10-4969155

Android version
8.1 (Oreo) - API 27

OpenGL setting

Renderer maximum
SwiftShader

Same issue previously it was working and suddenly it stopped working. Tried uninstalling app and other stuff but no luck.

Same issue here but with back camera.

Do any other ArCore applications work or is only Sceneform having an issue? For example try HelloAr https://developers.google.com/ar/develop/unity/tutorials/hello-ar-sample

Hi @malik-at-work
Is there any of this in the form of an application(apk)?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

michaelvogt picture michaelvogt  路  4Comments

Brian-Kwon picture Brian-Kwon  路  3Comments

scolar picture scolar  路  4Comments

chiaolinghong3d picture chiaolinghong3d  路  3Comments

khonakr picture khonakr  路  3Comments