title: Reflection fails in signed build Android
body: <p>I'm modularising our ongoing project.</p>
  
  <p>Let's say there is an app module.</p>
  
  <p>And 'n' number of other modules. 
  These modules implement app module (i.e implementation project(':app_module'))</p>
  
  <p>From app module I need to launch Module 1..n</p>
  
  <p>I've used reflection to get the activity reference in app_module. </p>
  
  <pre><code>val intent = Intent()
  intent.setClass(context, Class.forName("com.application.myapp.HelpActivity"))
  context.startActivity(intent) 
  </code></pre>
  
  <p>So when I run the application it works fine.</p>
  
  <p>But when I generated a <strong>Signed debug build</strong> and I installed it, I got <strong>ClassNotFoundException</strong></p>
  
  <pre><code>Caused by: java.lang.ClassNotFoundException: Didn't find class "com.application.myapp.HelpActivity" on path: DexPathList
  </code></pre>
  
  <p>Any idea what's causing reflection to fail in <strong>Signed debug build</strong> ?</p>
  
  <p><strong>Note</strong>: Its not a pro-guard issue. I've disabled it and I've checked. Same issue is there.</p>
  
  <p>Thank you.</p>