title: EventBus with Kotlin not working
body: <p>I am new to Android, and trying to send message from a Fragment to its container Activity using EventBus. 
  However, I am getting error:</p>
  
  <pre><code>D/EventBus: No subscribers registered for event class com.app.todo.controllers.task.TaskListFragment$TaskCreateSelectEvent
  </code></pre>
  
  <p>Following is the code in Activity class related to EventBus:</p>
  
  <pre><code>public class MainActivity : AppCompatActivity() {
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
      }
  
      @Subscribe(threadMode = ThreadMode.MAIN)
      fun onTaskCreateSelectEvent(event: TaskListFragment.TaskCreateSelectEvent) {
          Log.d("TAG", "On Main Activity")
      }
  
      fun addFragment(fragment: Fragment) {
          val transaction = supportFragmentManager.beginTransaction()
          transaction.setCustomAnimations(R.anim.enter, R.anim.exit, R.anim.pop_enter, R.anim.pop_exit)
          transaction.add(R.id.task_fragment_container, fragment)
          transaction.addToBackStack(fragment.javaClass.simpleName)
          transaction.commit()
      }
  
      public override fun onStart() {
          super.onStart()
          EventBus.getDefault().register(this)
      }
  
      public override fun onStop() {
          super.onStop()
          EventBus.getDefault().unregister(this)
      }
  
  }
  </code></pre>
  
  <p>Following is in Fragment class</p>
  
  <pre><code>public class TaskListFragment : Fragment() {
      private var fab: FloatingActionButton? = null
  
      public class TaskCreateSelectEvent {
          var fab: FloatingActionButton? = null
      }
  
      override fun onCreateView(inflater: LayoutInflater?, container: ViewGroup?, savedInstanceState: Bundle?): View? {
          var view = inflater!!.inflate(R.layout.task_list_fragment, container, false)
          fab = view.findViewById&lt;FloatingActionButton&gt;(R.id.fab)
          fab!!.setOnClickListener {
              val selectEvent = TaskCreateSelectEvent()
              EventBus.getDefault().post(selectEvent)
          }
          return view
      }
  }
  </code></pre>
  
  <p>This is how library is added in <code>build.gradle</code> file.</p>
  
  <pre><code>apply plugin: 'kotlin-kapt'
  
  dependencies {
      compile 'org.greenrobot:eventbus:3.0.0'
      kapt 'org.greenrobot:eventbus-annotation-processor:3.0.1' }
  
  kapt {
      arguments {
          arg('eventBusIndex', 'com.app.todo.controllers.MyEventBusIndex')
      } 
  }
  </code></pre>
  
  <p>Any idea what I am doing wrong?</p>