title: Android: How to disable debugging to upload the apk
body: <p>When I try to upload my app in Google Play I get this error.</p>
  <blockquote>
  <p>Upload failed</p>
  <p>You uploaded a debuggable APK. For security reasons you
  need to disable debugging before it can be published in Google Play.
  Learn more about debuggable APKs.</p>
  </blockquote>
  <p>I compile my app with Android Studio 0.4.0</p>
  <p>I tried to set this in my Manifest.xml - <code>Android:debuggable=&quot;false&quot;</code> , but nothing happened.
  When I tried to set this <code> &lt;option name=&quot;SOURCE_GEN_TASK_NAME&quot; value=&quot;generateReleaseSources&quot; /&gt;</code> in .iml file, and again nothing.</p>
  <p>I tried and with this in build.gradle,and again nothing.</p>
  <pre><code>android {
      signingConfigs {
          debug {
              storeFile file(&quot;horoskopSms.jks&quot;)
              storePassword &quot;1q2w3e&quot;
              keyAlias &quot;horoskopSms&quot;
              keyPassword &quot;1q2w3e&quot;
          }
      }
  }
  </code></pre>
  <p>My.iml file</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;module external.linked.project.path=&quot;$MODULE_DIR$&quot; external.root.project.path=&quot;$MODULE_DIR$/..&quot; external.system.id=&quot;GRADLE&quot;    type=&quot;JAVA_MODULE&quot; version=&quot;4&quot;&gt;
  &lt;component name=&quot;FacetManager&quot;&gt;
  &lt;facet type=&quot;android&quot; name=&quot;Android&quot;&gt;
    &lt;configuration&gt;
      &lt;option name=&quot;SELECTED_BUILD_VARIANT&quot; value=&quot;debug&quot; /&gt;
      &lt;option name=&quot;ASSEMBLE_TASK_NAME&quot; value=&quot;assembleDebug&quot; /&gt;
      &lt;option name=&quot;COMPILE_JAVA_TASK_NAME&quot; value=&quot;compileDebugJava&quot; /&gt;
      &lt;option name=&quot;ASSEMBLE_TEST_TASK_NAME&quot; value=&quot;assembleDebugTest&quot; /&gt;
      &lt;option name=&quot;SOURCE_GEN_TASK_NAME&quot; value=&quot;generateReleaseSources&quot; /&gt;
      &lt;option name=&quot;ALLOW_USER_CONFIGURATION&quot; value=&quot;false&quot; /&gt;
      &lt;option name=&quot;MANIFEST_FILE_RELATIVE_PATH&quot; value=&quot;/src/main/AndroidManifest.xml&quot; /&gt;
      &lt;option name=&quot;RES_FOLDER_RELATIVE_PATH&quot; value=&quot;/src/main/res&quot; /&gt;
      &lt;option name=&quot;RES_FOLDERS_RELATIVE_PATH&quot; value=&quot;file://$MODULE_DIR$/src/main/res&quot; /&gt;
      &lt;option name=&quot;ASSETS_FOLDER_RELATIVE_PATH&quot; value=&quot;/src/main/assets&quot; /&gt;
      &lt;option name=&quot;APK_PATH&quot; value=&quot;/build/apk/HoroskopSms-debug-unaligned.apk&quot; /&gt;
    &lt;/configuration&gt;
  &lt;/facet&gt;
       &lt;facet type=&quot;android-gradle&quot; name=&quot;Android-Gradle&quot;&gt;
       &lt;configuration&gt;
       &lt;option name=&quot;GRADLE_PROJECT_PATH&quot; value=&quot;:HoroskopSms&quot; /&gt;
    &lt;/configuration&gt;
  &lt;/facet&gt;
    &lt;/component&gt;
             &lt;component name=&quot;NewModuleRootManager&quot; inherit-compiler-output=&quot;false&quot;&gt;
          &lt;output url=&quot;file://$MODULE_DIR$/build/classes/debug&quot; /&gt;
        &lt;exclude-output /&gt;
       &lt;content url=&quot;file://$MODULE_DIR$&quot;&gt;
     &lt;sourceFolder url=&quot;file://$MODULE_DIR$/build/source/r/debug&quot; isTestSource=&quot;false&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/build/source/aidl/debug&quot; isTestSource=&quot;false&quot; /&gt;
  
  &lt;sourceFolder url=&quot;file://$MODULE_DIR$/build/source/buildConfig/debug&quot;         isTestSource=&quot;false&quot; /&gt;
   &lt;sourceFolder url=&quot;file://$MODULE_DIR$/build/source/rs/debug&quot; isTestSource=&quot;false&quot; /&gt;
       &lt;sourceFolder url=&quot;file://$MODULE_DIR$/build/res/rs/debug&quot; type=&quot;java-resource&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/build/source/r/test/debug&quot; isTestSource=&quot;true&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/build/source/aidl/test/debug&quot; isTestSource=&quot;true&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/build/source/buildConfig/test/debug&quot; isTestSource=&quot;true&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/build/source/rs/test/debug&quot; isTestSource=&quot;true&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/build/res/rs/test/debug&quot; type=&quot;java-test-resource&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/debug/aidl&quot; isTestSource=&quot;false&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/debug/assets&quot; isTestSource=&quot;false&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/debug/java&quot; isTestSource=&quot;false&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/debug/jni&quot; isTestSource=&quot;false&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/debug/rs&quot; isTestSource=&quot;false&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/debug/res&quot; type=&quot;java-resource&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/debug/resources&quot; type=&quot;java-resource&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/main/aidl&quot; isTestSource=&quot;false&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/main/assets&quot; isTestSource=&quot;false&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/main/java&quot; isTestSource=&quot;false&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/main/jni&quot; isTestSource=&quot;false&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/main/rs&quot; isTestSource=&quot;false&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/main/res&quot; type=&quot;java-resource&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/main/resources&quot; type=&quot;java-resource&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/instrumentTest/aidl&quot; isTestSource=&quot;true&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/instrumentTest/assets&quot; isTestSource=&quot;true&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/instrumentTest/java&quot; isTestSource=&quot;true&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/instrumentTest/jni&quot; isTestSource=&quot;true&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/instrumentTest/rs&quot; isTestSource=&quot;true&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/instrumentTest/res&quot; type=&quot;java-test-resource&quot; /&gt;
    &lt;sourceFolder url=&quot;file://$MODULE_DIR$/src/instrumentTest/resources&quot; type=&quot;java-test-resource&quot; /&gt;
    &lt;excludeFolder url=&quot;file://$MODULE_DIR$/build/apk&quot; /&gt;
    &lt;excludeFolder url=&quot;file://$MODULE_DIR$/build/assets&quot; /&gt;
    &lt;excludeFolder url=&quot;file://$MODULE_DIR$/build/bundles&quot; /&gt;
    &lt;excludeFolder url=&quot;file://$MODULE_DIR$/build/classes&quot; /&gt;
    &lt;excludeFolder url=&quot;file://$MODULE_DIR$/build/dependency-cache&quot; /&gt;
    &lt;excludeFolder url=&quot;file://$MODULE_DIR$/build/incremental&quot; /&gt;
    &lt;excludeFolder url=&quot;file://$MODULE_DIR$/build/libs&quot; /&gt;
    &lt;excludeFolder url=&quot;file://$MODULE_DIR$/build/manifests&quot; /&gt;
    &lt;excludeFolder url=&quot;file://$MODULE_DIR$/build/res&quot; /&gt;
    &lt;excludeFolder url=&quot;file://$MODULE_DIR$/build/symbols&quot; /&gt;
    &lt;excludeFolder url=&quot;file://$MODULE_DIR$/build/tmp&quot; /&gt;
  &lt;/content&gt;
  &lt;orderEntry type=&quot;jdk&quot; jdkName=&quot;Android API 19 Platform&quot; jdkType=&quot;Android SDK&quot; /&gt;
  &lt;orderEntry type=&quot;sourceFolder&quot; forTests=&quot;false&quot; /&gt;
  &lt;orderEntry type=&quot;library&quot; exported=&quot;&quot; name=&quot;support-v4-19.0.0&quot; level=&quot;project&quot; /&gt;
  &lt;orderEntry type=&quot;library&quot; exported=&quot;&quot; name=&quot;ComAndroidSupportAppcompatV71900.aar&quot; level=&quot;project&quot; /&gt;
  &lt;orderEntry type=&quot;library&quot; exported=&quot;&quot; name=&quot;FortumoInApp-android-9.1.0&quot; level=&quot;project&quot; /&gt;
  &lt;/component&gt;
         &lt;/module&gt;
  </code></pre>