VK SDK android "sdk_fingerprint is incorrect" error
Asked Answered
P

3

5

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:

https://i.sstatic.net/YYoWm.jpg

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.

Polio answered 19/7, 2015 at 21:6 Comment(0)
P
0

I've solved the problem by recreating debug.keystore in ~/.android/ folder and creating new keystores along with fingerprints for debug and release version.

Polio answered 20/7, 2015 at 17:15 Comment(0)
R
9

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.

Radu answered 3/11, 2016 at 22:20 Comment(0)
K
0

Debug and release versions of the application will have different fingerprints as they get signed using different keystores. One is android debug keystore, thr other is your release keystore. Make sure you have both fingerprints listed in your VK settings.

Then, on different machines debug keystores will differ, too, so if you're using several machines you have to add fingerprints for every machine.

Kimbro answered 19/7, 2015 at 21:16 Comment(0)
P
0

I've solved the problem by recreating debug.keystore in ~/.android/ folder and creating new keystores along with fingerprints for debug and release version.

Polio answered 20/7, 2015 at 17:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.