【发布时间】:2017-11-13 20:10:46
【问题描述】:
我创建了一个即时应用程序。我把它上传到我的谷歌控制台,我得到了这个错误。
www.kochchy.cz 网站尚未链接到您的应用程序 通过数字资产链接协议。链接申请网站 带有数字资产链接。
[{
"relation": ["delegate_permission/common.handle_all_urls"],
"target": {
"namespace": "android_app",
"package_name": "com.kochchy.instantapptest.app",
"sha256_cert_fingerprints":["A4:A6:74:15:F1:3E:38:3F:93:0F:EF:E3:A6:86:8E:7C:25:45:E8:80:5B:5E:35:70:49:20:DB:F8:CB:D4:FC:E0"]
}
}]
即时和可安装的 apk 都使用相同的 id:com.kochchy.instantapptest.app(每个都在自己的模块清单中定义)
我的 base 模块清单如下所示:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.kochchy.instantapptest">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="default-url"
android:value="https://www.kochchy.cz" />
<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:scheme="http" />
<data android:host="www.kochchy.cz" />
<data android:pathPattern="/menu" />
</intent-filter>
</activity>
</application>
</manifest>
----- 编辑 ------
我从谷歌即时应用示例创建了新项目:https://github.com/googlesamples/android-instant-apps/tree/master/hello
同样的谷歌控制台错误。我猜我的网络设置有问题,而不是应用程序。
www.kochchy.cz 网站尚未链接到您的应用程序 通过数字资产链接协议。链接申请网站 使用数字资产链接。
【问题讨论】:
-
我不确定您是否应该将您的证书指纹发布给全世界查看
-
您是否在数字资产中使用已发布的密钥库。 "sha256_cert_fingerprints": ["A4:A6:74:15:F1:3E:38:3F:93:0F:EF:E3:A6:86:8E:7C:25:45:E8:80:5B:5E: 35:70:49:20:DB:F8:CB:D4:FC:E0"] 应该是你的 ketstore 而不是调试一个
-
是的,我正在使用释放键
-
这里有同样的问题。使用了谷歌示例之一。改变了网址。我绝对确定 sha 证书是正确的,因为我以前使用过它进行深度链接。你解决了吗?
-
您可以仔细检查两件事。首先,确保你通过了这个测试:developers.google.com/digital-asset-links/tools/generator。二、确保这一步的“链接和验证”100%通过developer.android.com/studio/write/…
标签: android google-console-developer android-instant-apps