Skip to content
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
Closed

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

brandonrisell opened this issue Feb 27, 2017 · 6 comments

Comments

@brandonrisell
Copy link

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
Copy link
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.

@jamesmontemagno
Copy link
Collaborator

Duplicate of #43

@jamesmontemagno
Copy link
Collaborator

Try: 5.1.0.14-beta

@brandonrisell
Copy link
Author

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

@jamesmontemagno
Copy link
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

@brandonrisell
Copy link
Author

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants