IntelliJ IDEA 12.1.0 Web Help

12.0+
Some features described here are available in Ultimate edition only.

Besides generating signed packages for deploying on physical devices or unsigned packages for running on emulators, you can also have an application package extracted and signed in the debug mode. This signature is sufficient for testing and debugging applications but does not allow publishing them. Having an application package signed in the debug mode is available only through an artifact.

To sign an application in the debug mode
  1. Open the Project Structure settings.
  2. Click Artifacts to open the Artifacts page.
  3. Click the New button add.png and choose the artifact type Android Application in the New drop-down list. Then specify the original contents of the artifact definition using the context menu:
    • To have an empty layout definition created. choose Empty.
    • To have the data of a module included in the artifact by default, choose From module <module name>.

    The basic settings of the new artifact are displayed in the Artifact Layout pane that opens.

  4. Specify the general settings of the artifact. In the Output directory text box, specify the location of the package .apk file to be created.
  5. Complete the artifact definition by following these general steps:
  6. In the Android tab, choose Debug.
  7. To have IntelliJ IDEA obfuscate the application during packaging, select the Run ProGuard check box and specify the location of the proguard.txt configuration file. The file is generated during project creation and is stored in the project root. IntelliJ IDEA suggests this default location in the Config file path text box. Accept the suggestion or specify a custom configuration file by clicking the Browse button browseButton.png and selecting the required file in the dialog that opens.

See Also

Procedures:

Reference:

External Links:

Web Resources: