xamarin / Xamarin.Forms

Xamarin.Forms is no longer supported. Migrate your apps to .NET MAUI.
https://aka.ms/xamarin-upgrade
Other
5.62k stars 1.87k forks source link

[Bug] Error android.content.res.Resources$NotFoundException: Unable to find resource ID #0xffffffff #14401

Closed SwissCheezze closed 3 years ago

SwissCheezze commented 3 years ago

Description

I am trying to switch pages within my app using shell flyout but every time i try to switch pages i get this error (android.content.res.Resources$NotFoundException: Unable to find resource ID #0xffffffff). The most common problem i found to do this was androidX packages and some other ones but i dont have any of them in my app and it was working fine until a week ago. For the code idk where the issue is so just request it and ill show that part as i cannot fully share the code per Company rules

Steps to Reproduce

Unknown

Expected Behavior

Switch to the selected page Successfully

Actual Behavior

Unhandled Exception : Android.content.res.Resources$NotFoundException: Unable to find resource ID #0xffffffff

Basic Information

Environment

Show/Hide Visual Studio info ``` Microsoft Visual Studio Community 2019 Version 16.9.6 VisualStudio.16.Release/16.9.6+31313.79 Microsoft .NET Framework Version 4.8.04084 Installed Version: Community Visual C++ 2019 00435-60000-00000-AA609 Microsoft Visual C++ 2019 ADL Tools Service Provider 1.0 This package contains services used by Data Lake tools ASA Service Provider 1.0 ASP.NET and Web Tools 2019 16.9.693.2781 ASP.NET and Web Tools 2019 ASP.NET Core Razor Language Services 16.1.0.2112521+5741df381174d72f08e3632bb99f52e8635b6a1a Provides languages services for ASP.NET Core Razor. ASP.NET Web Frameworks and Tools 2019 16.9.693.2781 For additional information, visit https://www.asp.net/ Azure App Service Tools v3.0.0 16.9.693.2781 Azure App Service Tools v3.0.0 Azure Data Lake Node 1.0 This package contains the Data Lake integration nodes for Server Explorer. Azure Data Lake Tools for Visual Studio 2.6.1000.0 Microsoft Azure Data Lake Tools for Visual Studio Azure Functions and Web Jobs Tools 16.9.693.2781 Azure Functions and Web Jobs Tools Azure Stream Analytics Tools for Visual Studio 2.6.1000.0 Microsoft Azure Stream Analytics Tools for Visual Studio C# Tools 3.9.0-6.21160.10+59eedc33d35754759994155ea2f4e1012a9951e3 C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used. Common Azure Tools 1.10 Provides common services for use by Azure Mobile Services and Microsoft Azure Tools. Cookiecutter 16.9.21111.1 Provides tools for finding, instantiating and customizing templates in cookiecutter format. Extensibility Message Bus 1.2.6 (master@34d6af2) Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration. IntelliCode Extension 1.0 IntelliCode Visual Studio Extension Detailed Info Microsoft Azure HDInsight Azure Node 2.6.1000.0 HDInsight Node under Azure Node Microsoft Azure Hive Query Language Service 2.6.1000.0 Language service for Hive query Microsoft Azure Stream Analytics Language Service 2.6.1000.0 Language service for Azure Stream Analytics Microsoft Azure Stream Analytics Node 1.0 Azure Stream Analytics Node under Azure Node Microsoft Azure Tools 2.9 Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.40423.1 Microsoft Continuous Delivery Tools for Visual Studio 0.4 Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE. Microsoft JVM Debugger 1.0 Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines Microsoft Library Manager 2.1.113+g422d40002e.RR Install client-side libraries easily to any web project Microsoft MI-Based Debugger 1.0 Provides support for connecting Visual Studio to MI compatible debuggers Microsoft Visual C++ Wizards 1.0 Microsoft Visual C++ Wizards Microsoft Visual Studio Tools for Containers 1.1 Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container. Microsoft Visual Studio VC Package 1.0 Microsoft Visual Studio VC Package Mono Debugging for Visual Studio 16.9.7 (df23ba6) Support for debugging Mono processes with Visual Studio. NuGet Package Manager 5.9.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/ ProjectServicesPackage Extension 1.0 ProjectServicesPackage Visual Studio Extension Detailed Info Python 16.9.21111.1 Provides IntelliSense, projects, templates, debugging, interactive windows, and other support for Python developers. Python - Conda support 16.9.21111.1 Conda support for Python projects. Python - Django support 16.9.21111.1 Provides templates and integration for the Django web framework. Python - Profiling support 16.9.21111.1 Profiling support for Python projects. SQL Server Data Tools 16.0.62103.10080 Microsoft SQL Server Data Tools ToolWindowHostedEditor 1.0 Hosting json editor into a tool window TypeScript Tools 16.0.30201.2001 TypeScript Tools for Microsoft Visual Studio Visual Basic Tools 3.9.0-6.21160.10+59eedc33d35754759994155ea2f4e1012a9951e3 Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used. Visual F# Tools 16.9.0-beta.21102.9+7ce7132f1459095e635194d09d6f73265352029a Microsoft Visual F# Tools Visual Studio Code Debug Adapter Host Package 1.0 Interop layer for hosting Visual Studio Code debug adapters in Visual Studio Visual Studio Container Tools Extensions 1.0 View, manage, and diagnose containers within Visual Studio. Visual Studio Tools for Containers 1.0 Visual Studio Tools for Containers VisualStudio.DeviceLog 1.0 Information about my package VisualStudio.Foo 1.0 Information about my package VisualStudio.Mac 1.0 Mac Extension for Visual Studio Xamarin 16.9.000.294 (d16-9@876547a) Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android. Xamarin Designer 16.9.0.318 (remotes/origin/7b35adcdd1b204bbdcb279e0f029d151a20a4bf3@7b35adcdd) Visual Studio extension to enable Xamarin Designer tools in Visual Studio. Xamarin Templates 16.9.72 (426ebf6) Templates for building iOS, Android, and Windows apps with Xamarin and Xamarin.Forms. Xamarin.Android SDK 11.2.2.1 (d16-9/877f572) Xamarin.Android Reference Assemblies and MSBuild support. Mono: 5e9cb6d Java.Interop: xamarin/java.interop/d16-9@54f8c24 ProGuard: Guardsquare/proguard/v7.0.1@912d149 SQLite: xamarin/sqlite/3.34.1@daff8f4 Xamarin.Android Tools: xamarin/xamarin-android-tools/d16-9@d210f11 Xamarin.iOS and Xamarin.Mac SDK 14.16.0.5 (ab40b131d) Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support. ```

Build Logs

Show/Hide Build ``` Build started... 1>------ Build started: Project: Project_Alpha, Configuration: Debug Any CPU ------ 1>Project_Alpha -> C:\Users\Admin\Desktop\Project_Alpha_Demo\Project_Alpha\Project_Alpha\bin\Debug\netstandard2.0\Project_Alpha.dll 2>Starting deployment to Samsung SM-G975F ... 2>Deploying to Samsung SM-G975F ... Build started. Project "Project_Alpha.Android.csproj" (Install target(s)): Found Java SDK version 1.8.0. Found Java SDK version 1.8.0. PackageName: com.companyname.project_alpha Skipping target "ProcessGoogleServicesJson" because all output files are up-to-date with respect to the input files. Dex Fast Deployment Enabled: False MonoAndroid Tools: C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Xamarin\Android\ Android Platform API level: 30 TargetFrameworkVersion: v11.0 Android NDK: Android SDK: C:\Program Files (x86)\Android\android-sdk\ Android SDK Build Tools: C:\Program Files (x86)\Android\android-sdk\build-tools\30.0.2\ Java SDK: C:\Program Files\Android\Jdk\microsoft_dist_openjdk_1.8.0.25\ Application Java class: android.app.Application Project "Project_Alpha.csproj" (GetTargetFrameworks target(s)): Done building project "Project_Alpha.csproj". Project "Project_Alpha.csproj" (GetTargetPath target(s)): Done building project "Project_Alpha.csproj". Project "Project_Alpha.csproj" (GetNativeManifest target(s)): Done building project "Project_Alpha.csproj". Skipping target "_ResolveLibraryProjectImports" because all output files are up-to-date with respect to the input files. Skipping target "_BuildLibraryImportsCache" because all output files are up-to-date with respect to the input files. Skipping target "_GenerateAndroidResourceDir" because all output files are up-to-date with respect to the input files. Skipping target "_GenerateLayoutBindings" because it has no outputs. Skipping target "_ConvertResourcesCases" because all output files are up-to-date with respect to the input files. Skipping target "_CompileResources" because all output files are up-to-date with respect to the input files. Skipping target "_PrepareUpdateAndroidResgen" because all output files are up-to-date with respect to the input files. Skipping target "_UpdateAndroidResgen" because all output files are up-to-date with respect to the input files. Adding assembly reference for Project_Alpha.Android, recursively... Adding assembly reference for netstandard, recursively... Adding assembly reference for System.Data, recursively... Adding assembly reference for System.Transactions, recursively... Adding assembly reference for System.Data.DataSetExtensions, recursively... Adding assembly reference for System.Drawing.Common, recursively... Adding assembly reference for System.IO.Compression, recursively... Adding assembly reference for System.IO.Compression.FileSystem, recursively... Adding assembly reference for System.ComponentModel.Composition, recursively... Adding assembly reference for System.Web.Services, recursively... Adding assembly reference for System.Collections, recursively... Adding assembly reference for System.Diagnostics.Debug, recursively... Adding assembly reference for System.Net.Http, recursively... Adding assembly reference for System.Threading.Tasks.Extensions, recursively... Adding assembly reference for System.Resources.ResourceManager, recursively... Adding assembly reference for System.Collections.Concurrent, recursively... Adding assembly reference for System.Threading, recursively... Adding assembly reference for System.Runtime.InteropServices.WindowsRuntime, recursively... Adding assembly reference for System.Runtime.Serialization, recursively... Adding assembly reference for System.ServiceModel.Internals, recursively... Adding assembly reference for Autofac, recursively... Adding assembly reference for Firebase, recursively... Adding assembly reference for Firebase.Storage, recursively... Adding assembly reference for System.Threading.Tasks, recursively... Adding assembly reference for System.IO, recursively... Adding assembly reference for System.Runtime.Extensions, recursively... Adding assembly reference for FirebaseAdmin, recursively... Adding assembly reference for FormsViewGroup, recursively... Adding assembly reference for Google.Api.Gax, recursively... Adding assembly reference for Google.Api.Gax.Rest, recursively... Adding assembly reference for Google.Apis.Auth, recursively... Adding assembly reference for Google.Apis.Auth.PlatformServices, recursively... Adding assembly reference for Google.Apis.Core, recursively... Adding assembly reference for Google.Apis, recursively... Adding assembly reference for Java.Interop, recursively... Adding assembly reference for LiteDB, recursively... Adding assembly reference for Microsoft.Bcl.AsyncInterfaces, recursively... Adding assembly reference for Mono.Android, recursively... Adding assembly reference for mscorlib, recursively... Adding assembly reference for MvvmHelpers, recursively... Adding assembly reference for Newtonsoft.Json, recursively... Adding assembly reference for Plugin.CurrentActivity, recursively... Adding assembly reference for Plugin.Media, recursively... Adding assembly reference for Plugin.Permissions, recursively... Adding assembly reference for Project_Alpha, recursively... Adding assembly reference for System.Collections.Immutable, recursively... Adding assembly reference for System.Memory, recursively... Adding assembly reference for System.Core, recursively... Adding assembly reference for System.Diagnostics.DiagnosticSource, recursively... Adding assembly reference for System.Runtime.InteropServices, recursively... Adding assembly reference for System.Diagnostics.Tracing, recursively... Adding assembly reference for System.Reflection, recursively... Adding assembly reference for System, recursively... Adding assembly reference for Mono.Security, recursively... Adding assembly reference for System.Json, recursively... Adding assembly reference for System.Numerics, recursively... Adding assembly reference for System.Numerics.Vectors, recursively... Adding assembly reference for System.Reactive, recursively... Adding assembly reference for System.Runtime, recursively... Adding assembly reference for System.Xml, recursively... Adding assembly reference for System.Xml.Linq, recursively... Adding assembly reference for Xamarin.AndroidX.Activity, recursively... Adding assembly reference for Xamarin.AndroidX.Annotation, recursively... Adding assembly reference for Xamarin.AndroidX.Annotation.Experimental, recursively... Adding assembly reference for Xamarin.AndroidX.AppCompat.AppCompatResources, recursively... Adding assembly reference for Xamarin.AndroidX.AppCompat, recursively... Adding assembly reference for Xamarin.AndroidX.Arch.Core.Common, recursively... Adding assembly reference for Xamarin.AndroidX.Arch.Core.Runtime, recursively... Adding assembly reference for Xamarin.AndroidX.AsyncLayoutInflater, recursively... Adding assembly reference for Xamarin.AndroidX.Browser, recursively... Adding assembly reference for Xamarin.AndroidX.CardView, recursively... Adding assembly reference for Xamarin.AndroidX.Collection, recursively... Adding assembly reference for Xamarin.AndroidX.CoordinatorLayout, recursively... Adding assembly reference for Xamarin.AndroidX.Core, recursively... Adding assembly reference for Xamarin.AndroidX.CursorAdapter, recursively... Adding assembly reference for Xamarin.AndroidX.CustomView, recursively... Adding assembly reference for Xamarin.AndroidX.DocumentFile, recursively... Adding assembly reference for Xamarin.AndroidX.DrawerLayout, recursively... Adding assembly reference for Xamarin.AndroidX.Fragment, recursively... Adding assembly reference for Xamarin.AndroidX.Interpolator, recursively... Adding assembly reference for Xamarin.AndroidX.Legacy.Support.Core.UI, recursively... Adding assembly reference for Xamarin.AndroidX.Legacy.Support.Core.Utils, recursively... Adding assembly reference for Xamarin.AndroidX.Legacy.Support.V4, recursively... Adding assembly reference for Xamarin.AndroidX.Lifecycle.Common, recursively... Adding assembly reference for Xamarin.AndroidX.Lifecycle.LiveData.Core, recursively... Adding assembly reference for Xamarin.AndroidX.Lifecycle.LiveData, recursively... Adding assembly reference for Xamarin.AndroidX.Lifecycle.Runtime, recursively... Adding assembly reference for Xamarin.AndroidX.Lifecycle.ViewModel, recursively... Adding assembly reference for Xamarin.AndroidX.Lifecycle.ViewModelSavedState, recursively... Adding assembly reference for Xamarin.AndroidX.Loader, recursively... Adding assembly reference for Xamarin.AndroidX.LocalBroadcastManager, recursively... Adding assembly reference for Xamarin.AndroidX.Media, recursively... Adding assembly reference for Xamarin.AndroidX.MultiDex, recursively... Adding assembly reference for Xamarin.AndroidX.Print, recursively... Adding assembly reference for Xamarin.AndroidX.RecyclerView, recursively... Adding assembly reference for Xamarin.AndroidX.SavedState, recursively... Adding assembly reference for Xamarin.AndroidX.SlidingPaneLayout, recursively... Adding assembly reference for Xamarin.AndroidX.SwipeRefreshLayout, recursively... Adding assembly reference for Xamarin.AndroidX.Transition, recursively... Adding assembly reference for Xamarin.AndroidX.VectorDrawable.Animated, recursively... Adding assembly reference for Xamarin.AndroidX.VectorDrawable, recursively... Adding assembly reference for Xamarin.AndroidX.VersionedParcelable, recursively... Adding assembly reference for Xamarin.AndroidX.ViewPager, recursively... Adding assembly reference for Xamarin.AndroidX.ViewPager2, recursively... Adding assembly reference for Xamarin.Essentials, recursively... Adding assembly reference for Xamarin.Firebase.Analytics, recursively... Adding assembly reference for Xamarin.Firebase.Annotations, recursively... Adding assembly reference for Xamarin.Firebase.Auth, recursively... Adding assembly reference for Xamarin.Firebase.Auth.Interop, recursively... Adding assembly reference for Xamarin.Firebase.Common, recursively... Adding assembly reference for Xamarin.Firebase.Components, recursively... Adding assembly reference for Xamarin.Firebase.Core, recursively... Adding assembly reference for Xamarin.Firebase.Database.Collection, recursively... Adding assembly reference for Xamarin.Firebase.Database, recursively... Adding assembly reference for Xamarin.Firebase.Installations, recursively... Adding assembly reference for Xamarin.Firebase.Installations.InterOp, recursively... Adding assembly reference for Xamarin.Firebase.Measurement.Connector, recursively... Adding assembly reference for Xamarin.Firebase.Storage.Common, recursively... Adding assembly reference for Xamarin.Firebase.Storage, recursively... Adding assembly reference for Xamarin.Forms.Core, recursively... Adding assembly reference for Xamarin.Forms.Platform.Android, recursively... Adding assembly reference for Xamarin.Forms.Platform, recursively... Adding assembly reference for Xamarin.Forms.Xaml, recursively... Adding assembly reference for Xamarin.Google.Android.Material, recursively... Adding assembly reference for Xamarin.Google.Guava.ListenableFuture, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Ads.Identifier, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Auth.Api.Phone, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Base, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Basement, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Measurement.Api, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Measurement.Base, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Measurement, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Measurement.Impl, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Measurement.Sdk.Api, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Measurement.Sdk, recursively... Adding assembly reference for Xamarin.GooglePlayServices.SafetyNet, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Stats, recursively... Adding assembly reference for Xamarin.GooglePlayServices.Tasks, recursively... Skipping target "_CopyConfigFiles" because it has no inputs. Skipping target "_ConvertPdbFiles" because it has no outputs. Building target "_LinkAssembliesNoShrink" partially, because some output files are out of date with respect to their input files. Skipping target "_CopyConfigFiles" because it has no inputs. Skipping target "_ConvertPdbFiles" because it has no outputs. Skipping target "_GenerateJavaStubs" because all output files are up-to-date with respect to the input files. Skipping target "_ManifestMerger" because all output files are up-to-date with respect to the input files. Skipping target "_ConvertCustomView" because all output files are up-to-date with respect to the input files. Skipping target "_AddStaticResources" because all output files are up-to-date with respect to the input files. Skipping target "_GeneratePackageManagerJava" because all output files are up-to-date with respect to the input files. Skipping target "_GenerateAndroidAssetsDir" because it has no outputs. Skipping target "_PrepareCreateBaseApk" because all output files are up-to-date with respect to the input files. Skipping target "_CreateBaseApk" because all output files are up-to-date with respect to the input files. Skipping target "_CompileJava" because all output files are up-to-date with respect to the input files. Skipping target "_CompileNativeAssemblySources" because all output files are up-to-date with respect to the input files. Skipping target "_CreateApplicationSharedLibraries" because all output files are up-to-date with respect to the input files. Skipping target "_CompileToDalvik" because all output files are up-to-date with respect to the input files. Touching "obj\Debug\110\android\bin\apk_per_abi.flag". Skipping target "_BuildApkFastDev" because all output files are up-to-date with respect to the input files. Touching "obj\Debug\110\android_debug_keystore.flag". Skipping target "_Sign" because all output files are up-to-date with respect to the input files. Using cached value from RegisterTaskObject Found device: R58M41HKTWH Touching "obj\Debug\110\upload.flag". Done building project "Project_Alpha.Android.csproj". Build succeeded. 2>Deployment was successful to Samsung SM-G975F. ========== Build: 1 succeeded, 0 failed, 1 up-to-date, 0 skipped ========== ========== Deploy: 1 succeeded, 0 failed, 0 skipped ========== ```
AndreasReitberger commented 3 years ago

This issue is already fixed and will be released with SR4 https://github.com/xamarin/Xamarin.Forms/issues/13843

SwissCheezze commented 3 years ago

This issue is already fixed and will be released with SR4

13843

Thankyou. But do you know when sr4 is coming out as this is halting production!!

AndreasReitberger commented 3 years ago

You can view the progress of SR4 here https://github.com/xamarin/Xamarin.Forms/projects/86

Lately, there seems to be more activity on fixing those bugs. However I cannot say when all bugs for this release are finished.

AndreasReitberger commented 3 years ago

SR4 is now available ;)

SwissCheezze commented 3 years ago

Closing this issue as the bug has been fixed from sr4