title: Setting Build Type debuggable to True in Android Studio doesn't stick
body: <p>I'm trying to add a second Build Type for my app (so I can test it using Proguard before publishing).  I made changes in the app/build.gradle to reflect what I want:</p>
  <pre><code>    debugPG {
          minifyEnabled true
          proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
          applicationIdSuffix '.debugPG'
          versionNameSuffix '.debugPG'
          signingConfig signingConfigs.debug
      }
  </code></pre>
  <p>When I try to debug, I get an error saying:</p>
  <blockquote>
  <p>Error running app:</p>
  <p>Cannot debug application from module app on device</p>
  <p>This application does not have the debuggable attribute enabled in its manifest.</p>
  <p>If you have manually set it in the manifest, then remove it and let the IDE automatically assign it.</p>
  <p>If you are using Gradle, make sure that your correct variant is debuggable.</p>
  </blockquote>
  <p>I went to the Android Studio settings for the Build Type (Build / Edit Build Types ...), selected debugPG, and changed Debuggable to True.  (Note - it was grayed out but allowed me to change it).  However when I click OK, it doesn't save the preference and I get the error again.  Opening the setting again shows me it's still stuck on False.</p>
  <p>How can I fix this?</p>