Reputation:
I recently migrated to Android Studio,
but it still isn't polished (in my opinion).
When I was making a call to a new thread and trying to get a callback to the UI thread, it suddenly complained that there was no post
method in the Handler class.
Then I noticed that the IDE had imported java.util.logging.Handler
instead of android.os.Handler
.
Has anyone encountered this same problem before and how do you get Android Studio to import properly?
Upvotes: 1
Views: 990
Reputation: 12444
Yes i had the same issue, but simply when using auto complete press ctrl+space (check your keymap) twice it will show all classes that have named Handler with their packages, and select the proper one
Upvotes: 1