title: how to keep all methods in a class with ProGuard
body: <p>I use ProGuard to optimize my Android Application. However for Android instrumentation test I need some (but not all) classes to keep all there members. I tried various approaches, the last being:</p>
  
  <pre><code>-keepclassmembers public class com.mycompany.myclass {
      *;
  }
  </code></pre>
  
  <p>But surprisingly I still get </p>
  
  <pre><code>java.lang.NoSuchMethodError: com.mycompany.myclass.&lt;init&gt;
  </code></pre>
  
  <p>The painful part here is that there are two constructors and one has quite a few parameters.</p>
  
  <p>Does anyone know the correct syntax to keep a class completely unchanged and untouched by ProGuard?</p>