New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed linking references in Android project (Xamarin - Visual Studio Community 2019) #3822
Comments
Please attach a reproducible test case and a build log. This is likely a NuGet restore issue. Restoring packages in your project may fix the problem. |
Apologies if this problem has already been fixed, but I found that this happened to me immediately after updating my android SDK platform. |
This same issue occurred for me after updating the Android SDK, however deleting |
Deleting 'bin' and 'obj' not work with me |
For me also not working. |
It is also not working for me. Cleaning and rebuilding the solution in VS also didn't work. Update: In my case the error was in one of my resources, the 'Styles.xml' was not properly formatted. After I fixed it it managed to build. |
deleting bin and obj did nothing for me too. I tried a NuGet restore and it failed with something about a downgrade detected in my Android Support packages. Upgrading them fixes the issue. [Updating to VS2019 from 2017 had me add an explicit reference to Xamarin.Essentials in Android.csproj which I think is what then caused Android Support package version issues.] However I can get the error to go away by upgrading then downgrading the Support packages so no idea what is happening. Prob not useful to anyone but wanted to share my experience just in case. |
Sorry, I only offered the suggested fix because it worked for me. Perhaps there's multiple issues occurring here and deleting the intermediates solves it in a specific case? |
I ran the following in Package Manager Console to fix my issue: |
It appears the issue is fixed by restoring nuget packages as suggested by @jonpryor, therefore I'm closing the issue. @bharanidharan1707 if you still experience this and restoring nugets doesn't help, please reopen. |
@grendello Severity Code Description Project File Line Suppression State |
Could you please let me know what change you did in Styles.xml? Would appreciate any leads to this issue. |
Upgrade XF version to resolve this problem |
Consolidating the NuGet packages worked for me. |
It Work, thanks!! (Y) |
I am having the same issue failed linking references (Xamarin - Visual Studio Community 2019) |
be careful to write in styles.xml:
Do not write: |
The text was updated successfully, but these errors were encountered: