Missing the android.os.handler object from Android Studio
import android.os.*;
solved the problem.
open : Settings -> Editor -> General -> Auto Import。
Exclude from Import
Just import android.os.Handler, no need to import everything in android.os
I had to add import android.os.*;
before I could get the android.os.Handler object working in my class.