Vuforia AR在三星Galaxy S7设备中无法检测平面如何解决?
Troubleshooting Ground Plane Detection on Samsung Galaxy S7 (SM-G930P) with Vuforia 7.0.36 & Unity 2017.3.0f3
Hey there, sorry to hear you're hitting this roadblock with your AR app—let's break down the most likely fixes for your Galaxy S7 issue, since you've already confirmed the device is on Vuforia's supported list and the iOS build works perfectly.
Device-Specific Checks
- Verify Camera Permissions: Android is strict about runtime permissions, even if you assume Unity added them automatically. Head to your device's Settings > Apps > [Your App] > Permissions and make sure the Camera permission is enabled. If it's missing, double-check your
Assets/Plugins/Android/AndroidManifest.xmlto ensure this line exists:<uses-permission android:name="android.permission.CAMERA" /> - Check Hardware & Testing Environment: The Galaxy S7's camera struggles with plain, low-texture surfaces (like a blank white wall or empty floor) or extreme lighting (too dark, direct sunlight). Test in a well-lit room with a textured surface (wooden table, patterned carpet) and make sure nothing covers the rear camera lens (thick case, smudged protector).
- Confirm Firmware is Up-to-Date: The SM-G930P is a Sprint variant—carrier-specific models sometimes have subtle firmware quirks. Ensure your device runs the latest available Android firmware (Android 8.0 Oreo for the S7) to rule out outdated system-level camera issues.
Unity & Vuforia Project Settings
- Validate Android Player Settings:
- Open Edit > Project Settings > Player and switch to the Android tab.
- Set Minimum API Level to at least Android 5.0 (API Level 21)—Vuforia 7.0.36 requires this to function properly.
- Ensure your Package Name follows the reverse domain format (e.g.,
com.yourcompany.yourapp) and matches what's set in your Vuforia Developer Portal license.
- Reset Vuforia Configuration:
- Go to Window > Vuforia Configuration and confirm the Ground Plane feature is enabled.
- If you've tweaked settings here, click Reset Configuration to restore defaults, then re-enable Ground Plane.
- Clean Build Cache: Switching platforms often leaves stale cache files. Delete the
Libraryfolder in your Unity project root, restart Unity, reimport your Vuforia package, and rebuild the APK from scratch—this fixes a surprising number of cross-platform glitches.
Version Compatibility Tweaks
- Update Vuforia to a Patch Release: Vuforia 7.0.36 is a bit outdated—version 7.2.x includes several fixes for Android device compatibility, especially with older Samsung models. Download the compatible Vuforia package from the Unity Asset Store and replace your current version.
- Switch to Unity 2017.4 LTS: Unity 2017.3 is a non-LTS release with known stability gaps. Upgrading to the 2017.4 LTS (Long-Term Support) version will ensure better compatibility with Vuforia and Android, while keeping your project in the same major version family.
Debugging Deep Dive
Since the official Vuforia Ground Plane sample also fails, enable Development Build in Unity's Build Settings (check the box) and build the sample APK. Connect your S7 to your computer via USB, open Android Studio's Logcat, and filter for Vuforia logs. Look for error messages like Camera initialization failed or Ground Plane tracker unavailable—these will give you a precise clue about what's breaking.
内容的提问来源于stack exchange,提问作者zyonneo




