Android即时应用播放存储错误 [英] Android Instant App Play Store Errors

查看:242
本文介绍了Android即时应用播放存储错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




  • 您必须为您的Instant提供一个默认网址。

    每当我将我的基本版和功能APK上传到Play商店时,应用APK。了解更多信息


  • 您的网站'www.example.com'尚未通过Digital
    资产链接协议链接到您的应用。请将您的网站通过
    Digital Assets Link协议链接到您的应用。

  • 您至少应该有一个映射到网站
    '的活动APK www.example .com'通过网络'intent-filter'。



以下是我的清单文件:( EDITED

 < manifest xmlns:android =http://schemas.android.com/apk/res/android 
package =com.ex.example.feature.productdetail>

<使用权限android:name =android.permission.WRITE_EXTERNAL_STORAGE/>
< uses-permission android:name =android.permission.ACCESS_NETWORK_STATE/>
< uses-permission android:name =android.permission.INTERNET/>
< uses-permission android:name =android.permission.ACCESS_COARSE_LOCATION/>
< uses-permission android:name =android.permission.ACCESS_FINE_LOCATION/>
<使用权限android:name =android.permission.WAKE_LOCK/>


< application>

< activity
android:name =。activity.ProductDetail
android:configChanges =orientation | screenSize
android:screenOrientation =portrait> ;
< meta-data
android:name =default-url
android:value =https://www.example.com/product/12345/>

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

android:autoVerify =true
android:order =1
>
< category android:name =android.intent.category.VIEW/>
< category android:name =android.intent.category.DEFAULT/>
< category android:name =android.intent.category.BROWSABLE/>

< data android:scheme =httpandroid:host =www.example.com/>
< data android:scheme =httpsandroid:host =www.example.com/>
< data android:pathPattern =/ product / 12345/>
< / intent-filter>

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

< / activity>

< meta-data
android:name =com.facebook.sdk.ApplicationId
android:value =@ string / facebook_app_id/>
< / application>
< / manifest>

我把assetlinks.json文件放到我的网站上,当我继续测试链接文件时,它成功。
我做错了什么想法?
感谢您的高级帮助

解决方案

这是因为您指定的默认网址( https ://www.example.com )不支持Instant App中的意图过滤器( https://www.example.com/product/productId

您需要更新默认网址,以便指向受支持的网址,或者添加新的支持默认网址的意图过滤器URL。


Whenever I upload my base and feature APKs to Play Store I got these errors :

  • You must provide a default URL for your Instant App APKs. Learn More
  • Your site 'www.example.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.
  • You should have at least one active APK that is mapped to site 'www.example.com' via a web 'intent-filter'.

And here is my manifest file : (EDITED)

    <manifest xmlns:android="http://schemas.android.com/apk/res/android"
        package="com.ex.example.feature.productdetail">

      <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
      <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
      <uses-permission android:name="android.permission.INTERNET"/>
      <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
      <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
      <uses-permission android:name="android.permission.WAKE_LOCK"/>


      <application>

    <activity
        android:name=".activity.ProductDetail"
        android:configChanges="orientation|screenSize"
        android:screenOrientation="portrait">
      <meta-data
          android:name="default-url"
          android:value="https://www.example.com/product/12345" />

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

      <intent-filter
          android:autoVerify="true"
          android:order="1"
          >
        <category android:name="android.intent.category.VIEW"/>
        <category android:name="android.intent.category.DEFAULT"/>
        <category android:name="android.intent.category.BROWSABLE"/>

        <data android:scheme="http" android:host="www.example.com"/>
        <data android:scheme="https" android:host="www.example.com"/>
        <data android:pathPattern="/product/12345"/>
      </intent-filter>

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

    </activity>

    <meta-data
        android:name="com.facebook.sdk.ApplicationId"
        android:value="@string/facebook_app_id"/>
  </application>
    </manifest>

I put the assetlinks.json file to my web site, and when I proceed test link file, it gives success. What am I doing wrong any idea? Thanks your help in advanced

解决方案

This is because the default URL you specified (https://www.example.com) is not supported by the intent-filters in your Instant App (https://www.example.com/product/productId).

You will either need to update the default URL so it points to a supported URL, or add a new intent-filter that supports the default URL.

这篇关于Android即时应用播放存储错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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