简体   繁体   English

xamarin Android.Content.Res.Resources+NotFoundException: '无法找到资源 ID #0xffffffff'

[英]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.

相关问题 在 Xamarin.Android 中获取资源 id &quot;Android.Content.Res.Resources+NotFoundException:&quot; 错误发生 - In Xamarin.Android getting resource id "Android.Content.Res.Resources+NotFoundException:" error occur 错误找不到资源 ID #0xffffffff - error Unable to find resource ID #0xffffffff 尝试在Xamarin上创建片段时获取Android.Content.Res.Resources + NotFoundException - Getting Android.Content.Res.Resources+NotFoundException while trying to create fragments on Xamarin Android.Content.Res.Resources + NotFoundException可绘制com.companyname.mySchool:资源ID为#0x7f02012c的drawable / splash_screen - Android.Content.Res.Resources+NotFoundException Drawable com.companyname.mySchool:drawable/splash_screen with resource ID #0x7f02012c 未处理的异常:Android.Content.Res.Resources + NotFoundException: <Timeout exceeded getting exception details> 发生了 - Unhandled Exception: Android.Content.Res.Resources+NotFoundException: <Timeout exceeded getting exception details> occurred 尝试通过 AppShell 移动时找不到资源 ID #0xffffffff - Unable to find resource ID #0xffffffff when trying to move through AppShell 在Xamarin中找不到资源ID - Not able to find Resource id in Xamarin C#:将 0xFFFFFFFF 分配给 int - C#: assign 0xFFFFFFFF to int Xamarin 按 Id 查找资源,然后按名称搜索 - Xamarin Find Resource by Id and then search by name Xamarin.Android Resource.ID错误 - Xamarin.Android Resource.ID error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM