This repository has been archived by the owner on May 1, 2024. It is now read-only.
[Bug] Android app with shared Android resource lib crash with target API level 29 or 30 #10809
Labels
4.6.0
regression on 4.6.0
Android10
i/high
Completely doesn't work, crashes, or is unusably slow, has no obvious workaround; occurs less often
i/regression
in-progress
This issue has an associated pull request that may resolve it!
p/Android
t/bug 🐛
Milestone
Description
To have multiple Android applications sharing the same resources mostly images, there's an Android class library containing the resources and assets, referenced by each Android app project. This has been working well with Xamarin.Forms 4.1-4.5. However, with Xamarin.Forms 4.6, the Android app crashes during startup.
Steps to Reproduce
Repository at https://github.com/zijianhuang/xamarinforms4bugs is demonstrating good ones in branch master and bad ones in branch ResourcesInLib.
The master branch is with Xamarin.Forms 4.6 and Android app project that contains Resources. This is working well.
The ResourcesInLib branch is with Xamarin.Forms 4.6 and Android class project that contain Resources. When the target API level is 28 (Android 9), things are OK. When the target API level is 29 or 30, the app crashes during startup.
After checking out the ResourcesInLib branch, build and run it, things are looking OK with the target API level is 28 (Android 9). Then you change to target API level 29 or 30, then build and run on a device, the app crashes on startup.
Expected Behavior
The app runs normally showing a button and a label
Actual Behavior
Crash.
Basic Information
Visual Studio Professional 2019, v16.6.0
Reproduction Link
https://github.com/zijianhuang/xamarinforms4bugs/tree/ResourcesInLib/
Remarks
Probably loosely related to issue #6327
The text was updated successfully, but these errors were encountered: