Bug 10530 - Package APK option disabled
Summary: Package APK option disabled
Status: VERIFIED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: General ()
Version: 4.4.x
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: dean.ellis
URL:
: 10825 11389 13852 ()
Depends on:
Blocks:
 
Reported: 2013-02-21 10:03 UTC by Allie Miller
Modified: 2015-11-09 12:18 UTC (History)
10 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
VERIFIED FIXED

Description Allie Miller 2013-02-21 10:03:17 UTC
After installing the new update (Xamarin 2), the ‘Package apk’ option suddenly got disabled.
Comment 1 dean.ellis 2013-02-21 12:42:36 UTC
I have replicated this on VS 2010 and 2012 under windows 8 as well
Comment 2 dean.ellis 2013-02-21 16:18:26 UTC
I'm fixing this for visual studio. it will use the same logic as the Publish button and will only be available in Release mode for a deployable application.
Comment 3 dean.ellis 2013-02-25 07:11:41 UTC
Fixed in master/cf31656be1
Comment 4 narayanp 2013-03-07 06:56:34 UTC
Today we have checked this issue with following builds:

VS 2012/2010
Xamarin.Android 4.6.1

As per comment#2 we are able to create .apk only in release mode. However with Debug mode this option displayed as grey.

Changing the status to verified.
Comment 5 Mikayla Hutchinson [MSFT] 2013-03-07 13:31:06 UTC
*** Bug 10825 has been marked as a duplicate of this bug. ***
Comment 6 Anatoly 2013-03-11 02:57:36 UTC
Why can't I make APK in debug mode? What if I wish to use debug information when I receive exceptions (for example) in my app that installed through APK?
Comment 7 Mikayla Hutchinson [MSFT] 2013-03-15 16:40:10 UTC
It's correct that "Package apk" and "Publish" should use the same logic but that logic is wrong.

It should not check the configuration name. Configuration names are not magic. They're just the names of the configurations we create by default.  People can easily create additional configurations or change the settings of existing configurations. It would be easy to create a "release" configuration for which "Package APK" and "Publish" make no sense, or a "debug" configuration for which they do.

The commands should be enabled unless the configuration uses the shared runtime.
Comment 8 dean.ellis 2013-03-19 15:08:54 UTC
Fixed in master/5d286c8c41

Both menus now check if the Shared runtime is being used and if not and they are a deployable prohject then they are enabled.
Comment 9 Erlend 2013-03-25 10:04:35 UTC
"Both menus now check if the Shared runtime is being used and if not and they
are a deployable prohject then they are enabled."

the Package APK option is disabled, even with or without the 'Shared runtime' option. and using the 'release' version. is there something else i need to do? 

need fix ASAP!
Comment 10 Saurabh 2013-03-25 13:04:06 UTC
Today we have checked this issue with following builds:

VS 2012/2010
Xamarin.Android 4.6.01081

And we observed that

If the shard runtime is enabled(Chacked by default) then package APK is disabled.
If the shared runtime is disabled(Unchecked by default)then package APK is enabled.
And after clicking on 'Package APK',APK file gets generated at project location under Release folder.

Changing the status to Verified.
Comment 11 PJ 2013-03-25 16:43:49 UTC
*** Bug 11389 has been marked as a duplicate of this bug. ***
Comment 12 Mohit Kheterpal 2013-05-30 11:13:03 UTC
Today we have checked this issue on following builds :

VS 2010 / 2012
MFA 4.7.07004

In debug mode 

If the shard runtime is enabled then package APK is disabled under build option.
If the shared runtime is disabled then package APK is enabled under build option.

And after clicking on 'Package APK',APK file gets generated at project location
under Release folder.
Comment 13 dean.ellis 2013-08-09 09:19:36 UTC
*** Bug 13852 has been marked as a duplicate of this bug. ***