title: How to fix proguard NoSuchMethodException on Android
body: <p>I have obfuscated Lite and a full projects both referencing a library project. At runtime I'm getting "NoSuchMethodException myMethod" error</p>
  
  <p>According to <a href="http://proguard.sourceforge.net/index.html#/manual/troubleshooting.html" rel="nofollow">http://proguard.sourceforge.net/index.html#/manual/troubleshooting.html</a> I have to add the following to the proguard.cfg </p>
  
  <pre><code>-keep class mypackage.MyClass { void myMethod(); }
  </code></pre>
  
  <p>My method returns a String and accepts 3 String parameters so I have added the following to the proguard.cfg</p>
  
  <pre><code>-keep public class com.mycompany.appName.MyClass { 
    String myMethod(String, String, String); 
  }
  </code></pre>
  
  <p>But I still get the same error. </p>
  
  <p>Let's say I'm building the lite version com.mycompany.appName.lite, I'm assuming I don't have to change the package name in the line added to the proguard.cfg since it is a referenced library.</p>
  
  <p>Is there anything I'm missing? Thanks.</p>