xamarin/Xamarin.Forms

[Bug] Xamarin.Forms 3.6 and Xamarin.Forms.Visual.Material 3.6 failed with exception when resources are defined in Android class library

Aperta

#6343 aperta il 29 mag 2019

 (1 commento) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
4.0.0e/3 :clock3:help wantedi/highinactivep/Androidt/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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 3.6. However, after introducing Xamarin.Forms.Visual.Material 3.6, the app fails at LoadApplication(new App());

Steps to Reproduce

https://github.com/zijianhuang/xamarinforms4bugs/tree/Branch_ResourcesLib was created from good tag ResourcesLibWorkingWell

Expected Behavior

Show Material Design rendering.

Actual Behavior

Crash at LoadApplication(new App()); with TargetInvocationException

Basic Information

  • Version with issue: Xamarin.Forms.Visual.Material 3.6.0.344457

  • Last known good version:

  • IDE: Visual Studio 2017 Pro

  • Platform Target Frameworks:

    • Android: 5,6,7,8,9

Reproduction Link

https://github.com/zijianhuang/xamarinforms4bugs/tree/Branch_ResourcesLib

Guida contributor