22

I'm trying to export an Android app. I've selected "Release | ARM".

It creates a bundle and lists it in the archives section but there's a warning next to it that says, "Archive built with debugging enabled".

How can that be, given that it's a release build?

How do switch off debugging?

Ian Warburton
  • 13,336
  • 19
  • 85
  • 164
  • 1
    open the Project options dialog, go the Debug tab, and disable it for the Release configuration – Jason May 06 '18 at 19:58
  • 1
    For some reason, the check box for "Enable developer instrumentation" was ghosted. I had to remove `full` from the project file. I wonder why that's in a release build. Nonetheless, the warning is still there. This is VS on Mac. I can't see a debug tab. – Ian Warburton May 06 '18 at 20:11
  • Sorry, that was iOS. In Android it's under Compiler – Jason May 06 '18 at 20:19
  • This is strange. There's a drop down and it says, "Debug Information: None" and the only symbol defined is "TRACE". – Ian Warburton May 06 '18 at 20:40
  • 1
    Oh, my first action worked. It was showing a new "Duplicate version" warning after that. :) – Ian Warburton May 06 '18 at 20:46

1 Answers1

65

I'm using Visual Studio for Mac and came across this same "Archive built with debugging enabled" warning after creating an archive of the Android project.

To fix this, do the following:

  1. Go into the Android project options (double-click on the Android project).
  2. Select the Compiler options.
  3. In the "Debug information" drop-down menu, select None (mine had the Portable option selected). Do this configuration for the Release build (the "Configuration" drop-down menu at the top says Release (Active)).
  4. Click on the Android Build options and take a look at the "Debugging Options". The Enable developer instrumentation (debugging and profiling)setting should be greyed out (and the checkbox should be unchecked). The setting is greyed out because of what was done in step 3.
  5. Publish the project.

So the problem was that by default the "Debug Information" wasn't set to None.

Fritz Lim
  • 1,441
  • 1
  • 16
  • 18