A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
The first crash (IllegalStateException: The specified child already has a parent) happens when the same view is added twice to the Android view hierarchy. That’s usually triggered by ObservableCollection updates in CollectionView or custom templates re‑using views. The fix is to ensure each item creates a new view instance and that old views are properly removed before being re‑added.
The second error:
Code
Error 316 monodroid-assembly Could not load library '.../liblog'. dlopen failed: library not found
is different—it’s coming from the Android runtime. This usually means:
The app package split (e.g. split_config.arm64_v8a.apk) is missing a native library expected by Mono/MAUI.
It can happen if the build output is corrupted, or if the APK splits are incomplete on device.
Steps to try:
Clean and rebuild the solution, then redeploy.
Delete the app from the device completely before reinstalling.
Make sure you’re targeting the correct ABI (arm64‑v8a) in your project settings.
If you’re using App Bundles (AAB), confirm that the native libraries are included in all splits.
Test with a Debug build deployed directly (not via Play/App Center) to rule out packaging issues.
If it persists, create a minimal reproducible sample and file an issue on the official .NET MAUI GitHub repo: https://github.com/dotnet/maui/issues (github.com in Bing). The team can only investigate with a repro.
Bottom line:
- The first crash is a view re‑use problem in your UI logic.
The second crash is a packaging/runtime issue with missing native libraries. Cleaning/rebuilding and checking ABI settings usually resolves it. If not, share a minimal repro with the MAUI team so they can investigate.The first crash (IllegalStateException: The specified child already has a parent) happens when the same view is added twice to the Android view hierarchy. That’s usually triggered by ObservableCollection updates in CollectionView or custom templates re‑using views. The fix is to ensure each item creates a new view instance and that old views are properly removed before being re‑added.
The second error:
Code
Error 316 monodroid-assembly Could not load library '.../liblog'. dlopen failed: library not found
is different—it’s coming from the Android runtime. This usually means:
The app package split (e.g. split_config.arm64_v8a.apk) is missing a native library expected by Mono/MAUI.
It can happen if the build output is corrupted, or if the APK splits are incomplete on device.
**Steps to try:**
**Clean and rebuild** the solution, then redeploy.
**Delete the app from the device** completely before reinstalling.
Make sure you’re targeting the correct ABI (arm64‑v8a) in your project settings.
If you’re using **App Bundles (AAB)**, confirm that the native libraries are included in all splits.
Test with a **Debug build deployed directly** (not via Play/App Center) to rule out packaging issues.
If it persists, create a **minimal reproducible sample** and file an issue on the official .NET MAUI GitHub repo: `https://github.com/dotnet/maui/issues` (github.com in Bing). The team can only investigate with a repro.
**Bottom line:**
The first crash is a view re‑use problem in your UI logic.
The second crash is a packaging/runtime issue with missing native libraries. Cleaning/rebuilding and checking ABI settings usually resolves it. If not, share a minimal repro with the MAUI team so they can investigate.