Android Studio spreads files across many macOS directories. For a complete removal, run all the commands below.

Remove the application and settings

rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
rm -Rf ~/Library/Caches/AndroidStudio*

Delete projects (optional)

rm -Rf ~/AndroidStudioProjects

Remove Gradle cache

rm -Rf ~/.gradle

Remove AVDs and keystores

Caution: other Android IDEs also use this folder. Preserve it if you use alternative tools.

rm -Rf ~/.android

Remove the SDK

rm -Rf ~/Library/Android*

After running all these commands, Android Studio will be completely removed from your Mac.