当我发布预览版时,播放商店提示:您必须使用至少一个通过网络“intent-filter”映射到“example.com”网站的APK。开发版本没问题。
<activity android:name=".MainActivity">
<meta-data
android:name="default-url"
android:value="https://example.com/"/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</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:host="example.com"
android:pathPattern="/"
android:scheme="https"/>
<data android:scheme="http"/>
</intent-filter>
</activity>
因为它是测试阶段,所以安装App的在线版本没有添加默认URL。添加default-url
安装应用程序manifest.xml
它会没问题。