Android Skip Linking broken in 4.12.03003 ?

BasileBasile USMember

Hi,

I'm using ServiceStack.Text and need it not to be linked linking SDK&User assemblies mode :

    <AndroidLinkMode>Full</AndroidLinkMode>
    <AndroidLinkSkip>ServiceStack.Text;ServiceStack.Client</AndroidLinkSkip>

Still I've got crashs like

System.TypeInitializationException: An exception was thrown by the type initializer for ServiceStack.Text.Jsv.JsvReader`1 
---> System.NullReferenceException: Object reference not set to an instance of an object
[...]

So it looks like the assembly has been linked anyway...
I looked into the MSBuild output but could not find any relevant clue that it indeed skipped the linking of those assemblies, it would actually be the opposite :

3>_LinkAssemblies:
3>  LinkAssemblies Task
3>    UseSharedRuntime: False
3>    MainAssembly: obj\Release\assemblies\MoPhoneApp.Monodroid.dll
3>    OutputDirectory: obj\Release\android\assets\
3>    I18nAssemblies: 
3>    LinkMode: Full
3>    LinkDescriptions:
3>    ResolvedAssemblies:
3>      obj\Release\assemblies\libphonenumbersBindings.dll
3>      obj\Release\assemblies\ServiceStack.Client.dll
3>      obj\Release\assemblies\ServiceStack.Interfaces.dll
3>      obj\Release\assemblies\ServiceStack.Pcl.Android.dll
3>      obj\Release\assemblies\ServiceStack.Text.dll
3>      obj\Release\assemblies\SQLite.Net.dll
[...]

Does it means that the assemblies were not preserved from linking ?

Thanks

Posts

  • BasileBasile USMember

    Hi guys,

    I still have the issue...is there any support here ?

  • glucoseglucose CNMember
    edited April 2015

    Me too.
    The AndroidLinkSkip is not working at all. My dll in the AndroidLinkSkip is still stripped and this cause my app crashed.
    My original PCL dll is 921kb, but after linking and AndroidLinkSkip, the dll size is 850kb in the apk. What a hell.
    The additional monoandroid argument --linkskip is also not working.

  • This is so poor. I really will be considering another technology to use to build my app. Xamarin is so far from production ready. How the hell can anyone build anything using this technology?

Sign In or Register to comment.