title: EventBus exception when proj is built - Subscriber class has no public methods called onEvent
body: <p>So, my app exchanges messages from/to my MainActivity to/from a background Service and I used <a href="https://github.com/greenrobot/EventBus" rel="nofollow noreferrer">EventBus</a> to handle that. I'm registering both components with </p>
  
  <pre><code>EventBus.getDefault().register(this);
  </code></pre>
  
  <p>on their onCreates. And I'm sending/receiving an event with:</p>
  
  <pre><code>EventBus.getDefault().post(new MyMessagePojo("message"));
  </code></pre>
  
  <p>and</p>
  
  <pre><code>public void onEvent(MyMessagePojo event) { ... }
  </code></pre>
  
  <p>Everything works well when I run the project from my AndroidStudio right to my test phone. However, when I generated the signed APK I installed the app and got a crash with the following exception:</p>
  
  <pre><code>Subscriber class my.package.MainActivity has no public methods called onEvent
  </code></pre>
  
  <p>Where it clearly has. I tried changing it from <code>onEvent</code> to <code>onEventMainThread</code> in my MainActivity but with no success. It's pretty frustrating since I was about to publish the app and now I can't fix this problem.</p>
  
  <p>I've been through <a href="https://github.com/greenrobot/EventBus/issues/79" rel="nofollow noreferrer">this</a> and <a href="https://stackoverflow.com/questions/24926859/subscriber-class-has-no-public-methods-called-on-event">this</a> but they were of no help.</p>
  
  <p>Any ideas? </p>