Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VK SDK android "sdk_fingerprint is incorrect" error

Tags:

android

vk-sdk

I'm using official VK SDK for Android and currently I am trying to authorize a user via official VK app from Google Play Market. I have no errors when authorizing with login web page that pops up and asks for user's credentials, but if the app is installed it will send an intent to launch auth window in the app and it gives me that error:

http://imgur.com/RiOY9Ak

I am initializing the SDK, tried to get the fingerprint both using the Android Studio terminal and VKSDK method. Both return the same, but it doesn't work. Package name is copied to the settings of my VK app, no main activity is provided because it is not needed.

like image 311
Nick Pakhomov Avatar asked Feb 09 '23 13:02

Nick Pakhomov


1 Answers

My problem was in having certificate fingerprint defined in application options (in the developer console on the vk.com) just as it was printed out by keytool while the documentation states to remove colons. Should I leave there hex digits only, the problem got resolved immediately.

like image 50
Cool Soft Avatar answered Feb 19 '23 17:02

Cool Soft