title: Android Studio release build with proguard: can't find referenced field in program
body: <p>this is the newest hot issue for every android pro coder. Will you shine in the glory of wisdom?</p>
  
  <p>I got a warning from proguard. The class Appirater cause this warning:</p>
  
  <blockquote>
    <p>can't find referenced field in program class de.xxx.xxx.R.$id</p>
  </blockquote>
  
  <p>From the proguard website
  <a href="http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedprogramclassmember" rel="nofollow">proguard troubleshooting</a></p>
  
  <blockquote>
    <p>A program class is referring to a field or a method that is missing
    from another program class. The warning lists both the referencing
    class and the missing referenced class member. Your compiled class
    files are most likely inconsistent. Possibly, some class file didn't
    get recompiled properly, or some class file was left behind after its
    source file was removed. Try removing all compiled class files and
    rebuilding your project.</p>
  </blockquote>
  
  <p>A Build --> Clean --> Rebuild is not working.</p>
  
  <p>If I add</p>
  
  <blockquote>
    <p>-dontwarn</p>
  </blockquote>
  
  <p>the code compiles but the app crashes on startup.</p>
  
  <p>To add the whole proguard.cfg from <a href="https://github.com/drewjw81/appirater-android/blob/master/proguard.cfg" rel="nofollow">the Appirater repo</a> leads to no success.</p>