The best solution for android studio is explained here: https://code.tutsplus.com/tutorials/how-to-enable-deep-links-on-android--cms-26317
TLDR : Android Studio --> Run --> Edit Configurations
Change Launch in Launch Options to "URL" and enter in the text field URL the correct url: "something://"