Android Studio tip — Exclude unwanted imports

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:

--

--

--

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

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

RxJava for beginners in Android

Unit Testing for beginners in Android

Android launchModes — Understanding the less understood!

Android Services in 5 mins…

Android Bordered Button

I was extremely happy with dagger but, was utterly disappointed in dagger-android.

How to handle Firebase Authentication in clean architecture using Jetpack Compose?

Dagger 2 on Android: The Simple Way

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Matthew Dolan

Matthew Dolan

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

More from Medium

Dispatchers in Kotlin Coroutines

Looking Back Into HandlerThread Android Internal💫

Let's use Android 12, Migration of our Android Apps to Android12 (API 31)

Jetpack DataStore in Modern Android Development