somayamahmoud
somayamahmoud

Reputation: 89

Archive option is not active in android project

I cannot Archive my app

enter image description here

Archive option is not active in android project or in build menu is not active

Upvotes: 1

Views: 1590

Answers (4)

Daniel Brilho
Daniel Brilho

Reputation: 298

Although this is an old issue, more people, like me, might be experiencing something similar now with VS 2022.

After the "Archive" button simply disappeared, the only solution was to go into the Android SDK Manager and install the SDK of the version prior to my project:

adição do SDK 32 no Android SDK Manager

As strange as it may seem, this solved the problem, even though my project is on version 33:

project on version 33

Perhaps installing the SDK triggered some recovery process for the other SDKs, I'm not sure.

Upvotes: 0

valentasm
valentasm

Reputation: 2402

It seems VS installer deleted the "tools" folder under Android SDK folder. To check that go to Tools > Android and check if options here is available. If all options are gray go to Tools > Options > Xamarin > Open location from "Android SDK Location" input. From there go to tools folder. If there is nothing here you need to download it from https://dl.google.com/android/repository/tools_r25.2.3-windows.zip, and then copy the "tools" folder back to previously copied path tools folder. Now, all options are available again.

Upvotes: 1

Kyle White
Kyle White

Reputation: 141

Check the following:

  • You are in Release config
  • The project is not running

Upvotes: 2

Jbwz
Jbwz

Reputation: 305

Check if Android SDK manager is enabled. tools->Anrdoid

Upvotes: 1

Related Questions