Xamarin UI compiled with 25.3.1 android support libs?

11 posts, 0 answers
  1. Tim
    Tim avatar
    54 posts
    Member since:
    Sep 2002

    Posted 23 May Link to this post

    Hi,

    I'm now using 25.3.1 android support libraries and I'm getting a lot of XA0106 warnings. See this thread for clarification: https://forums.xamarin.com/discussion/89661/a-lot-of-warnings-appear-in-a-new-empty-xamarin-forms-xaml-project

    Can you provide the Xamarin UI nugets compiled with 25.3.1 android support libraries? Perhaps in a different feed?

     

    Thanks,

    Tim

  2. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    414 posts

    Posted 23 May Link to this post

    Hi Tim,

    UI for Xamarin Cross Platform (Xamarin.Forms) supports SDK 23 (23.3.0) at this time (see here for required android dependencies). We are working on adding support for SDK 25 and we're planning it to be available in the next UI for Xamarin update.

    Regards,
    Lance | Tech Support Engineer, Sr.
    Telerik by Progress
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Tim
    Tim avatar
    54 posts
    Member since:
    Sep 2002

    Posted 24 May in reply to Lance | Tech Support Engineer, Sr. Link to this post

    Ok. Thanks!
  4. Lindsay Miles
    Lindsay Miles avatar
    75 posts
    Member since:
    Dec 2009

    Posted 25 May Link to this post

    Wondering if this is related...

    Download the latest UI for Xamarin trial today for VS 2017 for Mac.

    Xamarin.Forms Shared project targeting iOS and Android.
    Prior to adding UI for Xamarin, all compiling and running thus far. Only looking to use the RadListView.

    Once the packages are added to the iOS and Android projects, iOS compiles without issue.
    The Android project fails with these errors:

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error MSB6006: "java" exited with code 2. (MSB6006) (mycompany.Droid)

    AND

    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2021,3): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file: <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Runtime" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.20.0" newVersion="4.0.20.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Collections" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Threading.Tasks" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Diagnostics.Debug" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Threading" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.IO" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.ObjectModel" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Runtime.Extensions" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Text.RegularExpressions" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Net.Http" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.0.0" newVersion="4.0.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Dynamic.Runtime" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /><bindingRedirect oldVersion="0.0.0.0-10.0.0.0" newVersion="10.0.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Reflection" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Xml.ReaderWriter" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Text.Encoding" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Globalization" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding><assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"><dependentAssembly><assemblyIdentity name="System.Linq.Expressions" culture="neutral" publicKeyToken="b03f5f7f11d50a3a" /><bindingRedirect oldVersion="0.0.0.0-4.0.10.0" newVersion="4.0.10.0" /></dependentAssembly></assemblyBinding>
    /Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1965,3): error MSB6006: "java" exited with code 2.

  5. Tim
    Tim avatar
    54 posts
    Member since:
    Sep 2002

    Posted 25 May Link to this post

    Try enabling proguard and multidex, and then rebuild again. 
  6. Lindsay Miles
    Lindsay Miles avatar
    75 posts
    Member since:
    Dec 2009

    Posted 25 May Link to this post

    Thanks Tim, that worked!

    No compile/build error, still a lot of warnings a la your first post (XA0106)

    What does proguard and multidex do? Excuse my ignorance... :)

  7. Tim
    Tim avatar
    54 posts
    Member since:
    Sep 2002

    Posted 26 May in reply to Lindsay Miles Link to this post

    @lindsay Check this out: https://www.bignerdranch.com/blog/i-like-big-apps-and-i-cannot-lie-using-proguard-to-avoid-the-dalvik-method-limit/

     

  8. Lindsay Miles
    Lindsay Miles avatar
    75 posts
    Member since:
    Dec 2009

    Posted 26 May in reply to Tim Link to this post

    @Tim, all I can say is wow! I'd not have gotten to that in 100 years...!

    thanks for THAT tip, it'll prove most useful in many projects I'm sure.

  9. Namysław
    Namysław avatar
    19 posts
    Member since:
    Jul 2017

    Posted 14 Jul Link to this post

    Any update on Telerik support for 25.3.1 android libraries? When?
    On latest Telerik release, it's still not supported, and trying to update Xamarin.Android.* nugets causing app imposibility to be built.

    Thanks
  10. Lance | Tech Support Engineer, Sr.
    Admin
    Lance | Tech Support Engineer, Sr. avatar
    414 posts

    Posted 14 Jul Link to this post

    Hi Namyslaw,

    You should be able to build using SDK 25 support libraries, please see Tsyvatko's reply here. If you continue to have problems, open a Support Ticket here and we'll assist further.

    Please include as much information as possible in your ticket, such as:

    - A list of the project's NuGet dependencies (and versions)
    - What is your Android project's "Min", "Target" and "Compile With" version are set to
    - What version of UI for Xamarin are you using
    - What Android SDKs do you have installed (take a screenshot of your Android SDK Manager like you see Tsyvatko's forum post)


    Regards,
    Lance | Tech Support Engineer, Sr.
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  11. Namysław
    Namysław avatar
    19 posts
    Member since:
    Jul 2017

    Posted 26 Jul Link to this post

    Well, yes, I've "migrated" whole my solution from PCL to NETStandard, and then tried again to update Xamarin.Android libs to 25.3.1, and it works correctly.
    Can't remember the exact issue before, but it was something with mentioned previously **"java" exited with code 2**.

    Now, it's building and working correctly with Telerik dlls.

    Thank you!
Back to Top