简体   繁体   English

使用Visual Studio 2015在Xamarin中发布禁用Android应用程序选项

[英]Publish Android App option in disabled in Xamarin using Visual studio 2015

When trying to publish my android application, the option: Tools->Android->Publish Android App is disabled in Visual studio 2015, so I am unable to sign my application and publish it. 在尝试发布我的Android应用程序时,选项:工具 - > Android->发布Android应用程序在Visual Studio 2015中被禁用,因此我无法签署我的应用程序并将其发布。 What could be the reason? 可能是什么原因?

转到项目的属性并取消选中“使用共享运行时”,然后按ctrl+shift +B

3 probable causes: 3个可能的原因:

1- Your Solution configuration is on Debug , and you must select Release to deploy. 1-您的解决方案配置Debug上 ,您必须选择要部署的Release

2- Uncheck Use Shared Runtime checkbox. 2-取消选中“ 使用共享运行时”复选框。 When this is selected and you're in release mode, and the export option won't be available at all. 如果选择此选项并且您处于发布模式,则导出选项根本不可用。

必须取消选中使用共享运行时

3- You deployed a previuos version and not changed yet the Android Manifiest file. 3-您部署了previuos版本,但尚未更改Android Manifiest文件。 To change choose your Droid project, open properties and check into Android Manifiest tab: 要更改选择您的Droid项目,请打开属性并检查Android Manifiest选项卡:

Version Number and Version name fields. 版本号版本名称字段。

Android最明显

Are same values of your previous deploy? 您之前部署的值是否相同?

Try changing these values. 尝试更改这些值。

Seems like Xamarin will disable this option until you change it to new values. 看起来像Xamarin将禁用此选项,直到您将其更改为新值。

Another possible reason, from Xamarin Forum (this fixed the issue for me). 另一个可能的原因,来自Xamarin论坛(这为我解决了这个问题)。 In Android-SDK>Tools I had a couple of folders only. 在Android-SDK> Tools中,我只有几个文件夹。

SDK>Tools folder will be empty. SDK> Tools文件夹将为空。 Go to SDK > Temp folder. 转到SDK> Temp文件夹。 There will be a wrar named tools_. 将有一个名为tools_的wrar。 Copy this rar somewhere else and extract it. 将此rar复制到其他位置并将其解压缩。 Extracted folder will have the "Tools" folder. 提取的文件夹将包含“工具”文件夹。 Replace this Tools folder with SDK>Tools folder and Archive/SDK Manager etc everything will be back. 将此Tools文件夹替换为SDK> Tools文件夹和Archive / SDK Manager等,一切都将恢复。

https://forums.xamarin.com/discussion/85853/archive-option-is-disabled-in-visual-studio-2015 https://forums.xamarin.com/discussion/85853/archive-option-is-disabled-in-visual-studio-2015

Then restart Visual Studio. 然后重新启动Visual Studio。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM