Android Studio tip — Exclude unwanted imports

Matthew Dolan
2 min readSep 10, 2021
Photo by Todd Kent on Unsplash

The auto-import functionality of Android Studio is often cluttered, presenting the user with imports for deprecated classes. For example, even though junit.framework.Assert is deprecated, the IDE still provides it as a choice when auto-importing and auto-completing on assertEquals:

--

--

Matthew Dolan

Matt Dolan has been eating doughnuts and developing with Android since the dark days of v1.6.