title: How to use -dontwarn in ProGuard?
body: <p>I am using android studio to build debug and release application.
  When i build debug/release application</p>
  
  <pre><code>./gradlew assembleDebug
  
  ./gradlew assembleRelease
  </code></pre>
  
  <p>both build are created perfectly and run as well. Shows appropriate dialog box for debug or release</p>
  
  <p>now i have added proguard details in build.gradle:</p>
  
  <pre><code>signingConfigs {
      myConfig {
             storeFile file("keystore.jks")
             storePassword "abc123!"
             keyAlias "androidreleasekey"
             keyPassword "pqrs123!"
      }
  }
  
  buildTypes {
      release {
          runProguard true
          proguardFile getDefaultProguardFile('proguard-android-optimize.txt')
          signingConfig signingConfigs.myConfig
      }
  }
  productFlavors {
      defaultFlavor {
          proguardFile 'proguard-rules.txt'
      }
  }
  </code></pre>
  
  <p>Now it shows error in event log as</p>
  
  <blockquote>
    <p>Warning: there were 7 unresolved references to classes or interfaces.
             You may need to add missing library jars or update their versions.
             If your code works fine without the missing classes, you can suppress
             the warnings with '-dontwarn' options.
             (<a href="http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass">http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass</a>)</p>
    
    <p>Warning: there were 2 unresolved references to program class members.
             Your input classes appear to be inconsistent.
             You may need to recompile the code.</p>
    
    <p>(<a href="http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember">http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember</a>)
    :Flash Sales:proguardDefaultFlavorRelease FAILED</p>
  </blockquote>
  
  <p>If i turn the runProguard option to false then its running.</p>
  
  <p>I have these questions:</p>
  
  <p>1) is it ok to release apk with runProguard = false?</p>
  
  <p>2) How to use dontwarn while creating release build?</p>