Android App Links配置Web检查失败,提示DAL文件无应用指纹的问题排查求助
Android App Links配置Web检查失败,提示DAL文件无应用指纹的问题排查求助
我最近在给我的Android应用配置App Links,结果卡在了Android Studio的App Links Assistant的Web检查环节——一直提示有一项检查失败。我已经试了各种办法,甚至把应用签名密钥证书和上传密钥证书都配置进去了,但还是没解决问题,来这里求助各位大佬!
先贴一下我的相关配置内容:
1. AndroidManifest.xml 中的 Intent Filter 配置
<intent-filter android:autoVerify="true"> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:scheme="https" /> <data android:host="example" /> <data android:pathPrefix="/example" /> </intent-filter>
2. 服务器上的 .well-known/assetlinks.json 配置
我已经在 https://example/.well-known/assetlinks.json 路径下放置了验证文件,内容如下:
[{ "relation": ["delegate_permission/common.handle_all_urls"], "target": { "namespace": "android_app", "package_name": "com.example", "sha256_cert_fingerprints": [ "11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:1:11:11:11:11:11:11:11:11:11" ] } }]
我已经核对过SHA256证书指纹,是从Google Play Console和本地签名密钥中获取的正确值,甚至把两个证书的指纹都添加到了配置里(上面示例里只放了一个占位的指纹串)。
现在实在摸不着头脑,有没有大佬能帮我分析下可能的问题点?比如是不是Intent Filter的配置有疏漏?或者assetlinks.json的格式、路径存在问题?还是服务器的HTTP响应头有什么需要注意的地方?
内容来源于stack exchange
相关产品推荐
相关产品推荐

