简体   繁体   中英

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. What could be the reason?

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

3 probable causes:

1- Your Solution configuration is on Debug , and you must select Release to deploy.

2- Uncheck Use Shared Runtime checkbox. 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. To change choose your Droid project, open properties and check into Android Manifiest tab:

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.

Another possible reason, from Xamarin Forum (this fixed the issue for me). In Android-SDK>Tools I had a couple of folders only.

SDK>Tools folder will be empty. Go to SDK > Temp folder. There will be a wrar named tools_. Copy this rar somewhere else and extract it. Extracted folder will have the "Tools" folder. Replace this Tools folder with SDK>Tools folder and Archive/SDK Manager etc everything will be back.

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

Then restart Visual Studio.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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