I am currently working on an android app which is implementing the Spotify API. I have all of the code connecting my app to spotify using the tutorial and have been working
You need to go to your Spotify developer settings and update the
Android Packages
Providing your full package name i.e. com.company.app
and the SHA1 fingerprint of the respective build variant.
You can get the fingerprint by running
./gradlew signingReport
There you can find the results for e.g. debug
Variant: debug
Config: debug
Store: /Users//.android/debug.keystore
Alias: AndroidDebugKey
MD5: 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
SHA1: 00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00
Valid until: Monday, August 29, 2046
Saving the settings on your Spotify app page is enough to flush the system so that you can login from your device.