How do I disable the message: "Android Studio is an application downloaded from the Internet. Are you sure you want to open it?" on my MacBook Pro?

Solution 1:

You can't disable this kind of message. The reason is you have allowed to install apps from anywhere in the Security setting in System Preferences. If the app is from Mac App Store, you won't get any messages like this.

Solution 2:

You can stop getting this message by removing the 'quarantine' flag from the app using this command:

xattr -r -d com.apple.quarantine “/Applications/Android Studio.app"

if you get any errors, try it again with sudo like so:

sudo xattr -r -d com.apple.quarantine “/Applications/Android Studio.app"

Removing this flag stops macOS from checking the program for malware, and should only be done if you are absolutely certain that the program is safe. Use at your own risk, obviously.