It seems that hashkey, that you have created, is incorrect. You can generate the hash code of the application from the following code. Try
public static void showHashKey(Context context) { try { PackageInfo info = context.getPackageManager().getPackageInfo( "com.example.project", PackageManager.GET_SIGNATURES); //Your package name here for (Signature signature : info.signatures) { MessageDigest md = MessageDigest.getInstance("SHA"); md.update(signature.toByteArray()); Log.v("KeyHash:", Base64.encodeToString(md.digest(), Base64.DEFAULT)); } } catch (NameNotFoundException e) { } catch (NoSuchAlgorithmException e) { } }
source share