I am using firebase for phone number authentication.When I used my phone number, it automatically verifies it.But when I use another phone number I get classCastExceptio
In case you don't need a reference to an Activity then replace (Executor) this with the following code:
Activity
(Executor) this
new Executor() { @Override public void execute(Runnable command) {} }