-
Notifications
You must be signed in to change notification settings - Fork 79
Linker Exception in "Release" Android build #44
Comments
That's a new class in 1.1.3. |
Yes, but it's the compilation process that fails; not the actual app running. We don't get that far. |
did you try a full clean/rebuild in RELEASE? I wonder if there's a dll mismatch after the update? |
yes I did. |
so if the issue is at compile time, then it's not the Linker. What happens is that the linker strips classes during compile time so that at runtime they're no longer there (ie: linker issues will cause runtime crashes). I'm leaning more to a dll mismatch. Make sure you've done the following. I'm trying to reproduce, but cannot. |
Alternatively, if you can send me a repro, I'll take a look. |
give me a bit to completely clean the solution as well as deleting the contents of the "packages" folder in case the dll mismatch is coming from nuget. |
does 1.1.3 require xamarin forms 2.5, by any chance? |
I've cleaned everything out and still get the linker error. Could it be something with the target android framework version? |
all my xamarin.android.support.* packages are v26.1.0.1. |
I wonder if it makes a difference what the support packages are? Here's what I'm using. <?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Xamarin.Android.Support.Animated.Vector.Drawable" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Annotations" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Compat" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Core.UI" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Core.Utils" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Design" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Fragment" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Media.Compat" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Transition" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.v4" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.v7.AppCompat" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.v7.CardView" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.v7.MediaRouter" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.v7.Palette" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.v7.RecyclerView" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Android.Support.Vector.Drawable" version="25.4.0.2" targetFramework="monoandroid80" />
<package id="Xamarin.Forms" version="2.5.0.121934" targetFramework="monoandroid71" />
</packages> |
hmmm... let me see if I can downgrade my support libraries and target framework and see what that does |
Getting the same problem... How can I help you to find the issue? Edit : updated to v.26 but now it's failing on Baseflow/XamarinMediaManager#278, I don't get the XFX's error anymore, but I don't know if it's just not displayed because XamarinMediaManager fails first. Disabling the linker for now :/ ... |
Also have this problem with linking. |
We are using the XfxControls package in a Xamarin.Forms app (Droid and iOS). The Xamarin Forms version is 3.6.0.293080. When we try to compile our primary Droid platform project, we get a build error that the "LinkAssemblies task failed unexpectedly." The actual build error is quoted below. When we build the project in "Debug" mode, it works fine. If we select "Don't Link" in the Linker Behavior section of the Droid project options in the Release configuration, the build completes. Version Number of Control: 1.1.3 / 1.2.1 Actual Behavior \2017\Community\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2129,5): error MSB4018: The "LinkAssemblies" task failed unexpectedly. |
any news? I have the same issue as @hemantramu |
I have the same issue as @hemantramu Any news? Thanks |
No news yet, would love a repro that I can run to see. |
would anyone be willing to test a fix for me? |
Hello! Getting the same problem... |
Have the same issue. Xamarin Forms: 3.6.0.344457 Error: |
I would. Just let me know how. Thanks. Edit: I should say that i saw your PR and figure that was the fix, and I'm happy to test whatever, just need some guidance as to the best way to build and integrate it into my project. |
Hi, |
Any update on this? Seems like many have been having the same issue for a while. |
Same issue, haven't found a solution yet |
With newer version of Xamarin there is and issue between system drawing color and xamarin forms color. Only solution is to download source upgrade packages, fix this issue and reference dll locally to your project. |
Hi everyone. I have the same issue: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(2056,5): error XALNK7000: Mono.Linker.MarkException: Error processing method: 'System.Void Xfx.Controls.Droid.Renderers.XfxCardViewRendererDroid::Xamarin.Forms.Platform.Android.IVisualElementRenderer.add_LayoutChange(System.EventHandler Someone has found any solution ? |
Install 1.0.4 version and then remove bin/obj and then rebuild. It's work for me |
Thank you ShivamSingh1. It worked. Thank you so much. |
Bug
We are using the XfxControls package in a Xamarin.Forms app (Droid and iOS). The Xamarin Forms version is 2.4.0.74863. When we try to compile our primary Droid platform project, we get a build error that the "LinkAssemblies task failed unexpectedly." The actual build error is quoted below. When we build the project in "Debug" mode, it works fine. If we select "Don't Link" in the Linker Behavior section of the Droid project options in the Release configuration, the build completes.
Affects
Expected Behavior
Project compiles without any linker errors
Actual Behavior
Droid project compilation fails with linker exception like this:
Steps to reproduce the Behavior
The text was updated successfully, but these errors were encountered: