You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

ARCore应用构建后显示灰色线条而非相机画面问题求助

Fix: Flickering Gray/Black Lines in Sceneform Projects on Galaxy S9

Hey there, let's tackle this flickering issue you're seeing with the "Hello Sceneform" and "Solar System" projects on your Galaxy S9. Since your device works fine with official ARCore apps, the problem is likely tied to your project setup or build environment. Here are targeted fixes to try:

1. Match Sceneform and ARCore Versions

ARCore 1.2 requires Sceneform 1.2.0 to work properly. Double-check your module-level build.gradle to ensure dependencies are aligned:

dependencies {
    implementation 'com.google.ar.sceneform:core:1.2.0'
    implementation 'com.google.ar.sceneform:assets:1.2.0'
}

Version mismatches often cause low-level rendering conflicts that lead to flickering.

2. Disable Instant Run

Android Studio 3.2 Preview's Instant Run can mess up native libraries like those used by Sceneform. Turn it off:

  • Go to File > Settings > Build, Execution, Deployment > Instant Run
  • Uncheck Enable Instant Run to hot swap code/resource changes on deploy
  • Run Build > Clean Project then rebuild and redeploy your app.

3. Update ARCore Service on Your Device

Even though you can run ARCore apps, your device's ARCore service might be out of sync with your project's SDK version:

  • Open your phone's Settings > Apps > See all apps > ARCore
  • Check the version number—make sure it's 1.2 or newer (match your SDK version)
  • If it's outdated, head to Google Play Store and update ARCore.

4. Verify OpenGL ES Configuration

Galaxy S9 supports OpenGL ES 3.1, but your project might not be declaring it correctly:

  • Add this to your AndroidManifest.xml if it's missing:
<uses-feature android:glEsVersion="0x00030001" android:required="true" />
  • Ensure your build.gradle has a minimum SDK of 24 (Android 7.0), which Sceneform 1.2 requires:
android {
    defaultConfig {
        minSdkVersion 24
        // Rest of your config
    }
}

5. Clear App Cache & Reinstall

Stale cache or leftover app data can cause rendering glitches:

  • On your S9, go to Settings > Apps > [Your Test App] > Storage
  • Tap Clear Cache and Clear Data, then uninstall the app
  • Rebuild and reinstall from Android Studio fresh.

6. Try a Stable Android Studio Version

Android Studio 3.2 Preview might have unresolved bugs affecting Sceneform builds. If possible, switch to a stable release (like 3.1 or the final 3.2 build) and reimport your project.

If none of these work, grab detailed logs with adb logcat | grep -E "Sceneform|ARCore|EGL|OpenGL"—this will help pinpoint exactly where the rendering pipeline is failing.

内容的提问来源于stack exchange,提问作者Sean Krist

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.27 10:07:48