Android,生成数字资产链接:用于对应用程序进行签名的密钥库文件 [英] Android, Generate Digital Asset Link: keystore file for signing the app

查看:167
本文介绍了Android,生成数字资产链接:用于对应用程序进行签名的密钥库文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为Android应用程序实现了通用链接.到目前为止一切正常.我单击通用链接,将立即重定向到该应用程序.但是,我一直对Digital Asset Links使用debug.对于发行版,我需要签名配置或密钥库文件.

I implemented universal linking for my Android app. Everything works fine so far. I click on a universal link and will be immediately redirected to the app. However, I have always used debug for the Digital Asset Links. For the release I need the signing config or the keystore file.

要签署我的应用程序,我始终使用创建的xxxx.jks文件.如果我指定此选项,则会发生错误:Error occured while trying to get the SHA-256 fingerprint(请参见屏幕截图).

To sign my app I always use a created xxxx.jks file. If I specify this, an error occurs: Error occured while trying to get the SHA-256 fingerprint (See screenshot).

该错误非常没有意义.这就是为什么我有些困惑.我使用正确的文件吗?如何获得更好的错误描述?我总是使用此文件为新版本的应用签名.不会造成任何问题.

The error is very meaningless. That's why I'm a little confused. Do I use the right file? How do I get a better error description? I always use this file to sign my app for a new release. That doesn't cause any problems.

我已经从Play控制台的应用签名证书中提取了SHA-256指纹.这实际上不能正常工作.每当您点击我的通用链接时,应用都会询问:Should the link be opened with Chrome or with 'MyApp'?

I already took the SHA-256 fingerprint from the App signature certificate from the Play Console. This doesn't really work properly. Whenever you click on my universal link, the app asks: Should the link be opened with Chrome or with 'MyApp'?

感谢您的投入.

推荐答案

好的,解决方案很简单.我只是从Google Play控制台中获取SHA256.您必须将这一行放入assetlinks.json

Okay, the solution was simple. I just take the SHA256 from the google play console. This one you have to put in your assetlinks.json

然后我建立了一个公开测试版,它的工作与预期的一样.

Then I build a public beta and it works like expected.

这篇关于Android,生成数字资产链接:用于对应用程序进行签名的密钥库文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆