mukeshsolanki / android-otpview-pinview

A custom view to enter otp of different sizes used usually in cases of authentication.
MIT License
713 stars 206 forks source link

cannot find symbol method otpView.getText() and otpView.setOtpCompletionListener(this) #35

Closed skillFocus16 closed 6 years ago

skillFocus16 commented 6 years ago

Trying to compile project but build failing with errors: cannot find symbol method otpView.getText() and otpView.setOtpCompletionListener(this) in my activity

added implementation 'com.mukesh:otpview:1.0.1', maven repository and interface OnOtpCompletionListener

mukeshsolanki commented 6 years ago

Your using the wrong version of the library the latest version is 2.0.0

skillFocus16 commented 6 years ago

It worked after I changed dependency from implementation 'com.mukesh:otpview:1.0.1' to implementation 'com.github.mukeshsolanki:android-otpview-pinview:2.0.0' .. changing to implementation 'com.mukesh:otpview:2.0.0' doesn't work. Thanks, Mukesh!

Manasvi-Pundir commented 5 years ago

can not find method otpview.setListner(), if i am using otpview.setOncompletionListner() it crashes all the time, dependency i am using implementation 'com.github.mukeshsolanki:android-otpview-pinview:2.0.3'.