-
Notifications
You must be signed in to change notification settings - Fork 1.9k
android.content.res.Resources$NotFoundException: Unable to find resource ID #0xffffffff #13843
Comments
@samhouts please let me know about this, this is holding up development :( |
I was able to get my android project to run by downgrading Xamarin.Google.Android.Material to v1.2.1.1 |
It does not help for me, the app still crashes with the exact same error.
(and corresponding automatic changes in |
Same here. Other than nuget updates, I had installed the latest update from VS . Also updated the Android tool chain. At this point I am so far down the rabbit hole that I can't go back and even then go back to what? |
@samhouts any updates on this? seems like a pretty big issue |
After going back a few (library-related) upgrades, it looks like the bug is gone for me: First rollback:
Second rollback:
Third rollback:
Fourth "minor upgrade" to make it compile again:
My project compiles fine and (seems) to not crash anymore. Important: I'm otherwise using the very latest version of the whole VS editor and libraries. |
Yeah this did not work for me, I get an error stating material 1.2.1.1 is not compatible with xmarinio10 |
If it helps: Show/Hide Visual Studio info
I compile targeting Android 11.0 (R) - API Level 30 but with compatibility down to 5.1 - API Level 22. I am using XF 5.0.0.2012 but found few versions back that "somehow" I don't need to have it referenced in my Android project. Don't know why because I need it for iOS and have it naturally in my UI and other projects otherwise. |
Well maybe they will fix this....I am down in the water until they do.....so frustrating |
The files I updated that caused this issue were: Xamarin.AndroidX.MediaRouter 1.2.1 -> 1.2.2.1 when I rolled the files back I no longer have the issue |
a hard clean (removing all obj/ and bin/ folders usually solves the issue |
@StephaneDelcroix That was the first thing I tried. The only thing I have not tried is reformatting my machine., |
Did not work for me either.
I don't have any of these files, will see what else I can rollback that may fix it. EDIT: I rolled back these four files and the issue is gone, not sure which was causing it: Xamarin.AndroidX.Core 1.3.2.3 -> 1.3.2.1 |
Just updated all the AndroidX packages from 1.0.0.7 to 1.0.0.8 in a Xamarin Forms project and this problem started happening for me as well. Downgrading to the previous 1.0.07 version and doing a full clean it worked again. Huawei Nexus 6P androidx.fragment.app.FragmentAnim.loadAnimation Stack trace: |
I just faced the issue after upgrading Xamarin.Google.Android.Material to 1.3.0. erroneous line in ShellRenderer: According to Android docs "EnterMask" is not a valid value:
|
This makes sense. As the crash does not happens in constructor or OnNavigating or onNavigated. This was my experience, AndroidX.Fragment or no Fragment, if you have Xamarin.Google.Android.Material 1.3.0 or over , the problem appears, but 1.2.1.1 solves the problem. |
@tci-as you could create a custom renderer and override ShellRenderer.SwitchFragment. In this method you just invoke the base method with animate set to false:
|
This is all great...but when will this actually be fixed?? |
I wonder if this is related Can you attach reproduction of the issue? |
@PureWeen update to the latest android files.....and try to navigate using the flyout with Android. |
@PureWeen How to install this nuget package from Azure ? Is there instruction ? |
@PureWeen Figured out how to install, but this workaround still do not work |
Also getting this. Happens from a fresh Forms project once I install Xamarin.Firebase.Auth 120.0.4. |
Any workaround or fix yet? Nothing in this thread has worked for me. |
This problem hit me in my Xamarin Forms with a AppShell (that was working perfectly), after upgraded to the last version of many Google AndroidX Nuget Packages. Compiles, but running started to crash with the message error of this post when opened the menu to change to another page. The solution in my case: I downgraded to the previous version all the libraries one by one and the culprit seems to be the Xamarin.AndroidX.Legacy.Support.V4. The v1.0.0.6 was the last one that worked without problems for me. I don't know the reason. |
For me, the issue appeared after updating Xamarin.GooglePlayServices.Maps to latest 117.0.1 |
Could someone from the Xamarin Forms team please tell us when this issue will be fixed? |
Not from Xam forms team, but I don’t think anyone is actively working on Xam 5. Its all Maui now. So probably never.
|
We're prepping an SR that should resolve most (if not all) your issues Here's the PR I do worry about a few manifestations of exceptions happening here and it's a little tricky keeping up with what people have/haven't tried If you are running into this issue and can test the nugets here If your particular issues isn't resolved can you attach a reproduction so that I can try to see why your particular issues isn't addressed? |
@PureWeen Upgrading to these packages from CI did solve |
@PureWeen Upgrading to these packages from CI did solve Unable to find resource ID #0xffffffff for us and we haven't encountered any other issues so far. What's the likely date for XF5 SR4? |
@PureWeen could you push 5.0.0.7298 into nuget.org as a pre-release? |
I have the same problem! Could you please push 5.0.0.7298 into nuget.org as a pre-release? |
@PureWeen Could you please push 5.0.0.7298 into nuget.org as a pre-release? |
@PureWeen when is the SR due? |
So...what is the release version we are supposed to update too? I see 5.0.0 but that was the version that caused the issues wasn't it? |
Hi, |
I get the same error when I call a WebView to login with Facebook authentication only on Android. When I run the app on iOS no problem. So this error is happening in various places needless to say. |
Hi @varyamereon, it worked for me with this rollback! |
In my case the very latest update to Xamarin.forms fixed the problem. I am off and running! |
Great to hear that,.. I already try in Mac and it does not work, even if it work, I use Comunity Toolkit, annd the latest Xamarin.Form version does not meet the maximum requirement. |
@jinbatsu Xamarin.CommunityToolkit v1.3.0 supports the latest version of Xamarin.Forms, v5.0.0.2083. |
Hi everyone, I have de same problem, it was install Lottie 4.1, I downgrade to 3.0 and work. I hope helps yours. |
This worked for me as well. I guess Airbnb Lottie has some issue with the newer Xamarin stuff. Thanks for posting your answer, I would have never figured that out. The only thing different I did was lower the Android.Lottie to 3.0.3 as well. |
I solved this problem by removing all of the |
NOTES
The issue here appears to be that google removed some resources/apis that we are compiling against. It looks like we will need to start pinning the AndroidX dlls or compile against newer releases of AndroidX at a faster cadence
Original ticket
I updated my project this morning with some new android files via newget and ever since, when I try to navigate using the flyout menu, I get the following error: android.content.res.Resources$NotFoundException: Unable to find resource ID #0xffffffff
Description
The files I updated that caused this issue were:
Xamarin.AndroidX.MediaRouter 1.2.1 -> 1.2.2.1
Xamarin.AndroidX.LeanBack 1.0.0.6 -> 1.0.0.7
Xamarin.AndroidX.Palette 1.0.0.6 -> 1.0.0.7
when I rolled the files back I no longer have the issue
Steps to Reproduce
Expected Behavior
Actual Behavior
Basic Information
Environment
Microsoft Visual Studio Professional 2019 Version 16.8.6
Xamarin Forms 5.0.0.2012
Show/Hide Visual Studio info
Build Logs
Screenshots
Reproduction Link
Workaround
The text was updated successfully, but these errors were encountered: