问题
When I build and run the "Hello Sceneform" and "Solar System" projects that I downloaded while following the Android Quickstart https://developers.google.com/ar/develop/java/quickstart, all I see on my phone (a Galaxy S9) are these shifting gray/black lines, with the moving ARCore hand/phone on top.
I can download and run ARCore apps from the store without a hitch. The S9 is the only ARCore-compatible phone I can test with. I'm using Android Studio 3.2 preview, Windows 10, ARCore 1.2, and Android 8.0.0.
When I try running on any emulator device, it immediately crashes before displaying anything, which is likely due to the fact that I don't think my desktop GPU supports OpenGL ES 3.1, based on the output when I run "adb logcat | grep eglMakeCurrent". Right now my goal is just to get it working on my phone, though.
回答1:
The grey bars for the Galaxy S9 is a bug (see: https://github.com/google-ar/sceneform-android-sdk/issues/28).
As of July 18th it is still open.
回答2:
I had the same issue. Try using the NDK Quickstart instructions instead, found here.
After a few installations and updates of Gradle, etc.
running /samples/hello_ar_c via USB to an S9 worked flawlessy. Hope this helps.
来源:https://stackoverflow.com/questions/50360658/gray-lines-instead-of-camera-feed-in-arcore-app-builds