Open dhatriparakal opened 2 weeks ago
I saw similar errors for others, and some said it was Android 14 related - I just ran my app on an Android 13 emulator and got the same error.
Is AR Core able to run on emulators now? If so, I'd love to hear how.
As for the error, we chatted about this in the Discord group. This is caused by using a mismatched version of ARCore and Sceneform. When using a specific Sceneform Maintained version, it's best to use the same ARCore version the release does.
So in this case, com.gorisse.thomas.sceneform:sceneform:1.23.0
is using ARCore version 1.31.0
https://github.com/SceneView/sceneform-android/blob/62a371f1495d1800a279ff43645945c758f3bbbf/build.gradle#L19
This issue is the same as #463
Is AR Core able to run on emulators now? If so, I'd love to hear how.
I think this error is occuring before ARCore even gets a chance to attempt running on the device, since it crashes immediately after starting. I'm not entirely sure though. Also I think there is a way to use emulators for ARCore but I haven't made any serious attempts at it.
As for the error, we chatted about this in the Discord group. This is caused by using a mismatched version of ARCore and Sceneform. When using a specific Sceneform Maintained version, it's best to use the same ARCore version the release does. So in this case,
com.gorisse.thomas.sceneform:sceneform:1.23.0
is using ARCore version1.31.0
Ahh I see, that makes sense - I'll try that and see if it works
My app keeps crashing (testing on a Samsung Galaxy Tab S9+). I followed the tutorial here, it's also in the readme.md file: https://medium.com/make-an-android-ar-augmented-reality-app-for/make-an-ar-augmented-reality-app-for-android-in-2022-48a1711562bb
I'm using java instead of kotlin though, I'm not sure if that would cause any problems? This is my
MainActivity.java
for reference:These are my error logs: