anko - kotlin java.lang.NoSuchMethodError: No static method OnTouchListener -




internal var mtouchlistener: view.ontouchlistener = ontouchlistener { v, event ->     detector!!.ontouchevent(event)     when (event.action) {         motionevent.action_down -> if (autoscroll)          {             stopautoscroll()         }         motionevent.action_up -> if (autoscroll)          {             startautoscroll()         }         else -> {         }     }     false } 

i have custom view class. why error occur?

caused by: java.lang.nosuchmethoderror: no static method ontouchlistener(lkotlin/jvm/functions/function2;)landroid/view/view$ontouchlistener; in class landroid/widget/framelayout; or super classes (declaration of 'android.widget.framelayout' appears in /system/framework/framework.jar:classes2.dex) @ cn.qssq666.banner.banner.(banner.kt:332) @ cn.qssq666.banner.banner.(banner.kt:0) @ cn.qssq666.banner.banner.(banner.kt:0) @ java.lang.reflect.constructor.newinstance0(native method)  @ java.lang.reflect.constructor.newinstance(const





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -

python - Read npy file directly from S3 StreamingBody -