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

Linker error regarding Xamarin.Android.Support.CustomTabs #44

Closed
brandonrisell opened this Issue Feb 27, 2017 · 6 comments

Comments

Projects
None yet
2 participants
@brandonrisell

brandonrisell commented Feb 27, 2017

When I build a release configuration of an app using the Share Plugin with the latest Xamarin.Android.Support.CustomTabs package I get:

/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets:
Error: Error executing task LinkAssemblies:
error XA2006: Could not resolve reference to 'System.Void Android.Support.CustomTabs.CustomTabsIntent::LaunchUrl(Android.App.Activity,Android.Net.Uri)'
(defined in assembly 'Plugin.Share, Version=5.0.0.0, Culture=neutral, PublicKeyToken=null') with scope 'Xamarin.Android.Support.CustomTabs, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
When the scope is different from the defining assembly, it usually means that the type is forwarded.

I put together a quick reproduction of the issue here:
https://github.com/brandonrisell/PluginTest

The steps I used to reproduce it:

  • Create a new Xamarin.Forms PCL project
  • Add the Share Plugin nuget package
  • I added a button that triggered the share plugin, but this isn't needed
  • Update the Xamarin.Android.Support.CustomTabs package from version 23.3.0 to 25.1.1
    • EDIT: Downgraded a different project that has this package to 24.2.1 and it appears so far to not have any issues with the linker
  • Change config to Release
  • Build Android project
@jamesmontemagno

This comment has been minimized.

Show comment
Hide comment
@jamesmontemagno

jamesmontemagno Feb 27, 2017

Collaborator

Don't update that package there is no need to. I will have to generate an update build, but it is tricky with Xamarin.Forms where some developers wont have that version.

Collaborator

jamesmontemagno commented Feb 27, 2017

Don't update that package there is no need to. I will have to generate an update build, but it is tricky with Xamarin.Forms where some developers wont have that version.

@jamesmontemagno

This comment has been minimized.

Show comment
Hide comment
@jamesmontemagno

jamesmontemagno Feb 27, 2017

Collaborator

Duplicate of #43

Collaborator

jamesmontemagno commented Feb 27, 2017

Duplicate of #43

@jamesmontemagno

This comment has been minimized.

Show comment
Hide comment
@jamesmontemagno

jamesmontemagno Mar 1, 2017

Collaborator

Try: 5.1.0.14-beta

Collaborator

jamesmontemagno commented Mar 1, 2017

Try: 5.1.0.14-beta

@brandonrisell

This comment has been minimized.

Show comment
Hide comment
@brandonrisell

brandonrisell Mar 2, 2017

Awesome, I'll check it out and let you know how it goes. Thanks James.

brandonrisell commented Mar 2, 2017

Awesome, I'll check it out and let you know how it goes. Thanks James.

@jamesmontemagno

This comment has been minimized.

Show comment
Hide comment
@jamesmontemagno

jamesmontemagno Mar 2, 2017

Collaborator

6.1.0.19-beta is built against 25.1.1 and validated working in the test sample app on 25-1-1-support branch. 5.x will remain on 23.x support libraries

Collaborator

jamesmontemagno commented Mar 2, 2017

6.1.0.19-beta is built against 25.1.1 and validated working in the test sample app on 25-1-1-support branch. 5.x will remain on 23.x support libraries

@brandonrisell

This comment has been minimized.

Show comment
Hide comment
@brandonrisell

brandonrisell Mar 2, 2017

Installed and working great, thank you so much James. You're such a hard working and motivating person, I really admire how much you do for the Xamarin community.

brandonrisell commented Mar 2, 2017

Installed and working great, thank you so much James. You're such a hard working and motivating person, I really admire how much you do for the Xamarin community.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment