10

I'm trying to create an App link but the App links assistant keeps throwing the below error in Step 3 (Associate website) while generating the assetlinks.json.

An error occurred while trying to get the sha-256 fingerprint of the keystore file. Please make sure that your keystore file is correct.

enter image description here

I have tried both the options but getting the same error:

  1. Signing config - debug
  2. Keystore file - Created a new keystore from Build > Generate signed Bundle/Apk > Apk > Create New

Am I missing something? I'm on Android Studio Arctic Fox | 2020.3.1 Patch 3 Is there a way to create the JSON file without using the App links assistant?

AndroidDev
  • 5,193
  • 5
  • 37
  • 68
  • "Is there a way to create the JSON file without using the App links assistant?" -- it's just a JSON file. I used a text editor. `keytool` can give you the hash to use. – CommonsWare Oct 12 '21 at 14:07
  • 1
    If your keystore has a password, the tool will be not able to automatically generate the JSON file. You may run `keytool -list -v -keystore ` and enter the password. – Rick Dou Aug 25 '22 at 13:29

2 Answers2

10

You can use online tool for generating this json: https://developers.google.com/digital-asset-links/tools/generator

Or create it yourself, it's really really simple file, sample: https://developers.google.com/digital-asset-links/v1/getting-started#quick-usage-example

Jakoss
  • 4,647
  • 2
  • 26
  • 40
2

If you already have an app in the play store, just go to the Google Play Console

And then go to: Release > Setup > App integrity.

You can find the json content at the end of the "App signing" tab.

oguzhan
  • 2,073
  • 1
  • 26
  • 23
Nuqiewuoz
  • 41
  • 3