mzgreen
08/22/2017, 11:16 AMjava.lang.IllegalStateException: failed to analyze: org.jetbrains.kotlin.kapt3.diagnostic.KaptError: Error while annotation processing
It says:
:app:kaptDebugKotlin
e: /Users/mz/AndroidStudioProjects/Beta/app/build/tmp/kapt3/stubs/debug/com/beta/app/common/BaseDrawerActivity.java:15: error: type BroadcastReceiver does not take parameters
e:
e: private final android.content.BroadcastReceiver<com.beta.app.mvp.MvpDrawerActivityView, com.beta.app.mvp.MvpActivityPresenter> ignoreNotificationBroadcastReceiver = null;
e: ^
Where my code in BaseDrawerActivity
looks like this:
private val ignoreNotificationBroadcastReceiver = object : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent?) {
// ignore since it's shown in chat
abortBroadcast()
}
}