title: How to enable ProGuard obfuscation in Android Studio?
body: <p>I have to protect my app by enabling Proguard obfuscation in Android Studio. I have searched for the process of how to apply it but i did not get any clear solution. When i try it, i always get an error. So can anyone tell me the clear steps to apply it in my app?</p>
  
  <p>I am doing this by the following steps:</p>
  
  <ol>
  <li><p>In Android Studio, open up an Android project.</p></li>
  <li><p>Change to Project View.</p></li>
  <li><p>Change the following line:</p>
  
  <p><code>minifyEnable false</code> to <code>minifyEnable true</code></p></li>
  <li><p>Set ProGuard Rules(optional)</p>
  
  <p>4.1 In Project View, select the proguard-rules.pro file.</p>
  
  <p>4.2 Add in the following lines to tell ProGuard not to obfuscate certain classes. </p>
  
  <pre><code>-keepclassmembers class com.dom925.xxxx 
  {
    public *
  }
  </code></pre></li>
  </ol>
  
  <p><strong>Error that I am getting by following the steps are</strong> <br></p>
  
  <blockquote>
    <p>Error:Execution failed for task ':app:packageRelease'.
    Unable to compute hash of D:\Android\Pojectname\app\build\intermediates\classes-proguard\release\classes.jar</p>
  </blockquote>