Be careful when using automatic package import

Once I used the handler, but when the new Handler was used, Android Studio automatically generated three methods such as publish that were not covered in the Handler, which was not the same as when the handler was used before. Finally found the reason.

Error reason:
The automatic import system imported the java.util.logging.Handler package by mistake

Solution:
Manually remove import java.util.logging.Handler
and manually add import android.os.Handler

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326955839&siteId=291194637