Mandroid 错误 XA9005:用户代码大小,2945919 字节,大于 131072,需要商业(或更高)许可证. [英] Mandroid error XA9005: User code size, 2945919 bytes, is larger than 131072 and requires a Business (or higher) License.

查看:17
本文介绍了Mandroid 错误 XA9005:用户代码大小,2945919 字节,大于 131072,需要商业(或更高)许可证.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚通过我的 MSDN 订阅完成了 Visual Studio 2015 Enterprise with Update 2 的下载和安装.我看到来自 Build 的消息表明 Xamarin 现在可以免费使用 Visual Studio Enterprise,但我收到以下许可错误:

<块引用>

1>------ 构建开始:项目:App1.Droid,配置:调试任何 CPU -----1>C:\Users\Parrot\Projects\App1\App1\App1.Droid\Properties\AndroidManifest.xml:警告 XA0101:不支持 @(Content) 构建操作1>App1.Droid ->C:\Users\Parrot\Projects\App1\App1\App1.Droid\bin\Debug\App1.Droid.dll1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(379,5): mandroid error XA9005: 用户代码大小,2945919 字节,大于 131072 并且需要 aáBusinessá(或更高)许可证.1>C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.targets(379,5): mandroid error XA9006: Using type `Android.Runtime.JNIEnv`需要Businessá(或更高)许可证.========== 构建:0 成功,1 失败,0 最新,0 跳过 ==================== 部署:0 成功,0 失败,0 跳过 ==========

我已经尝试注销 Visual Studio 并重新启动它,但我仍然看到此错误.

解决方案

您绝对不应该在使用最新工具时遇到许可错误.如果您在更新到 Visual Studio 2015 Update 2 之前已在 Visual Studio 中安装了 Xamarin,则您可能使用的是旧版本的 Xamarin for Visual Studio.

只有最新版本的 Xamarin for Visual Studio 才允许您在没有传统 Xamarin 许可证的情况下在 Visual Studio 中工作.你能确保你安装了 4.0.3.214 版本吗?您应该能够通过帮助 -> 关于 Microsoft Visual Studio -> 复制信息 [按钮]"

找到该信息

任何比这更旧的版本都需要更新.您可以按照 Visual Studio 此处的说明检查您的更新程序频道并强制检查更新.

4.0.3.214 版目前处于 Beta 版和稳定版.

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.

解决方案

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.

这篇关于Mandroid 错误 XA9005:用户代码大小,2945919 字节,大于 131072,需要商业(或更高)许可证.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆