您的网站 'www.xxxxx.com' 尚未通过数字资产 Link 协议链接到您的应用

Your site 'www.xxxxx.com' has not been linked through the Digital Assets Link protocol to your app

我尝试了很多次上传免安装应用程序,但总是在 google 播放控制台出现此错误。

Your site 'www.builtbee.com' has not been linked through the Digital Assets Link protocol to your app. Please link your site through the Digital Assets Link protocol to your app.

这是我的清单....

<?xml version="1.0" encoding="utf-8"?>

<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">

    <meta-data
        android:name="asset_statements"
        android:resource="@string/asset_statements" />

    <activity
        android:name=".Home"
        android:screenOrientation="portrait">

        <meta-data
            android:name="default-url"
            android:value="https://www.builtbee.com" />

        <intent-filter
            android:autoVerify="true"
            android:order="1">

            <action android:name="android.intent.action.VIEW" />
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />

            <data android:scheme="http" />
            <data android:scheme="https" />
            <data android:host="www.builtbee.com" />
            <data android:pathPattern="/instantApp" />
        </intent-filter>

        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>

    </activity>

并且我已经通过我的发布密钥库文件传递数字资产 link。

https://i.stack.imgur.com/UvcTR.png

我是不是漏掉了什么?

谢谢

尝试按照 documentation and also see the discussion in the 中提供的步骤进行操作。

To add intent filters and URL handling, follow these steps:

  1. Select Tools > App Links Assistant.

  2. Click Open URL Mapping Editor and then click Add at the bottom of the URL Mapping list to add a new URL mapping.

  3. Add details for the new URL mapping: Figure 1. Add basic details about your site's link structure to map URLs to activities in your app.

  4. The App Links Assistant adds intent filters based on your URL mapping to the AndroidManifest.xml file, and highlights it in the Preview field. If you'd like to make any changes, click Open AndroidManifest.xml to edit the intent filter. (Learn more about intent filters in Android.)

  5. To verify your URL mapping works properly, enter a URL in the Check URL Mapping field and click Check Mapping. If it's working correctly, the success message shows that the URL you entered maps to the activity you selected.

如果您需要有关 android 中的即时应用程序项目结构的参考,您可以访问此 documentation

另一件事,仔细检查是否可以从外部网络访问 https://www.mywebsitename.com/.well-known/assetlinks.json。为此,请切换到 public wifi 并验证 json 文件是否可以正确加载。

请参阅此 SO post 了解更多详情

Please check if your website asset link file is not behind some form of authentication, internal IP, or blocked by firewall. Play Store Developer Console can not access the digital asset link file if it is not publicly accessible.

希望对您有所帮助。

我自己解决了。发生此问题是因为我使用我的上传密钥生成了 assetlinks.json,这是错误的。所以我只是用我的发布密钥编辑 json 文件并放入 .well-known 文件夹然后问题就解决了。

同意 Kaze 的观点,我遇到了同样的问题,最后发现这是因为您需要放入数字资产 link 文件、应用发布密钥而不是您从google 玩控制台。

好的,我找出了确切的问题。这是 SHA256 的问题。我提供了我的发布密钥的 SHA256。但是我需要提供游戏控制台提供的 SHA。转到 appsigning 部分并复制你的 aap 的 SHA256 并将其替换为你在 assetlinks.json.

中发布的 SHA256