UI for Xamarin forms without Enable Multi-Dex in android options

2 posts, 0 answers
  1. wilfred
    wilfred avatar
    1 posts
    Member since:
    Jun 2006

    Posted 21 Apr 2017 Link to this post

    Is it possible to use UI for Xamarin forms without enabling Multi-Dex in "Android Options" is VS?

    Here is what I did:

    1.Created a blank "Cross Platform App (Xamarin forms or native)". Selected "Xamarin.foms" and "shared project".

    2. Used Telerik Nuget to add "Telerik.UI.for.Xamarin".

    After wasting a lot of time finally got it to compile by enabling "Multi-Dex". But some places you can read that this is not something you want to do for best compatibility with devices.





  2. Lance | Tech Support Engineer, Sr.
    Lance | Tech Support Engineer, Sr. avatar
    821 posts

    Posted 21 Apr 2017 Link to this post

    Hello Wilfred,

    UI for Xamarin doesn't contain enough method references by itself to cause the Davlik limit to be hit.

    If you do a File > New > TelerikXFApp, you'll see that we include all of the available references possible and still don't need Multi-Dex. Instead, what you could do is increase your heap size to 1G (which is the minimum we recommend).

    Here's a screenshot of where to find this setting:

    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
Back to Top