[英]xamarin Android.Content.Res.Resources+NotFoundException: 'Unable to find resource ID #0xffffffff'
error:错误:
xamarin Android.Content.Res.Resources+NotFoundException: 'Unable to find resource ID #0xffffffff'
error is on line auth = DependencyService.Get<IAuth>();
错误在线auth = DependencyService.Get<IAuth>();
shared project共享项目
public partial class PhoneAuthPage : ContentPage
{
IAuth auth;
public PhoneAuthPage()
{
InitializeComponent();
auth = DependencyService.Get<IAuth>();
}
...
}
android project android项目
[assembly: Dependency(typeof(AuthDriod))]
namespace TestApp_Firebase.Droid.Views.PhoneViews
{
public class AuthDriod : PhoneAuthProvider.OnVerificationStateChangedCallbacks, IAuth
{
...
}
AppShell.xaml AppShell.xaml
<Shell ...
xmlns:local="clr-namespace:TestApp_Firebase.Views"
xmlns:PhoneViews="clr-namespace:TestApp_Firebase.vPhone"
...>
<FlyoutItem Title="Main Home Page" Icon="icon_about.png">
<ShellContent Route="MainHomePage" ContentTemplate="{DataTemplate local:MainHomePage}" />
</FlyoutItem>
<FlyoutItem Title="Phone Auth Page" Icon="icon_about.png">
<ShellContent Route="PhoneAuthPage" ContentTemplate="{DataTemplate PhoneViews:PhoneAuthPage}" />
</FlyoutItem>
</Shell>
In my case, nuget pack "Xamarin.GooglePlayServices.Basement"
broken appshell menu.在我的例子中,nuget 包"Xamarin.GooglePlayServices.Basement"
损坏的 appshell 菜单。 Not know why.不知道为什么。
I just got it working by downgrading my我只是通过降级我的
Xamarin.GooglePlayServices.Base Xamarin.GooglePlayServices.Base
To version 116.0.1.至版本 116.0.1。 Did not touch anything else没碰别的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.