Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mandroid error XA9005: User code size, 2945919 bytes, is larger than 131072 and requires a Business (or higher) License.

I just finished downloading and installing Visual Studio 2015 Enterprise with Update 2 via my MSDN subscription. I saw the news from Build indicating that Xamarin is now free with Visual Studio Enterprise, but I am getting the following Licensing error:

1>------ Build started: Project: App1.Droid, Configuration: Debug Any CPU -----

1>C:\Users\Parrot\Projects\App1\App1\App1.Droid\Properties\AndroidManifest.xml : warning XA0101: @(Content) build action is not supported  
1> App1.Droid -> 

C:\Users\Parrot\Projects\App1\App1\App1.Droid\bin\Debug\App1.Droid.dll
1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(379,5): mandroid error XA9005: User code size, 2945919 bytes, is larger than 131072 and requires aáBusinessá(or higher) License.  
1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(379,5): mandroid error XA9006: Using type `Android.Runtime.JNIEnv` requiresáBusinessá(or higher) License.  
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========  
========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

I've already tried logging out of Visual Studio and restarting it, but I still see this error.

like image 358
cobey Avatar asked Apr 01 '16 03:04

cobey


3 Answers

You definitely shouldn't be getting licensing errors with the newest tooling. If you already had Xamarin installed in Visual Studio before updating to Visual Studio 2015 Update 2, you may be on an older version of Xamarin for Visual Studio.

Only the latest version of Xamarin for Visual Studio will allow you to work in Visual Studio without a traditional Xamarin license. Can you ensure that you have version 4.0.3.214 installed? You should be able to find that information via "Help -> About Microsoft Visual Studio -> Copy Info [button]"

Any version older than that will need to be updated. You can follow the instructions for Visual Studio here to check your updater channel and force a check for updates.

Version 4.0.3.214 is currently in both Beta and Stable channels.

like image 75
Dominic Avatar answered Nov 11 '22 18:11

Dominic


Also ensure that you have installed the latest Xamarin bits on the Mac build host that you are using. The error may come from there instead of Visual Studio.

like image 2
Rytmis Avatar answered Nov 11 '22 18:11

Rytmis


I use Visual Studio 2015 Update 2, but in Tool => Option => Xamarin => Other i choose Alpha and Visual Studio installed Alpha version. Now i choose Stable => Visual studio auto install Xamarin Stable version => Work like charm! :) enter image description here

like image 1
BillDo168 Avatar answered Nov 11 '22 18:11

BillDo168