在 Play 商店导入 APK
Import APK on Play Store
我在 Play 商店导入我的第一个 APK 时遇到了一些困难。一个简单的 WebView 应用程序。
我收到此错误消息:
Importation error.
The domain name "https://chimeria.net" you specified is not valid
Enter a valid domain name.
其中https://chimeria.net是WebView中嵌入网站的url...
阅读文档后 (https://developers.google.com/digital-asset-links/v1/getting-started):
- 我创建了一个 json 文件
https://chimeria.net/.well-known/assetlinks.json
我从 My Developer Play 商店页面的“应用程序签名”选项卡中获取了 SHA256 值。
screenshot of where i picked up the SHA546 KEY
- 我在应用程序的 AndroidManifest.xml 中添加了这一行:
<meta-data android:name="asset_statements" android:resource="@string/asset_statements" />
- 我在应用程序的 res/values/strings.xml 文件中添加了这个
<string name="asset_statements">
[{
\"relation\": [\"delegate_permission/common.share_location\"],
\"target\": {
\"namespace\": \"web\",
\"site\": \"https://chimeria.net\"
}
}]
</string>
- 稍后在我的清单文件中,我声明
<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="http" android:host="https://chimeria.net" />
<data android:scheme="https" />
</intent-filter>
- 该应用程序是使用 Android Studio(Android App Bundle)创建的,它给了我一个 .aab 文件。
无论我怎么尝试,我的应用程序都被拒绝了,因为 link 没有被接受。
最后我在一天内浪费了所有可能的尝试。
有人会知道我做错了什么吗?
感谢您的帮助
chimeria.net
是主机,https
或http
是方案。
您可能想将清单更改为:
<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="http" android:host="chimeria.net" />
<data android:scheme="https" android:host="chimeria.net" />
</intent-filter>
我在 Play 商店导入我的第一个 APK 时遇到了一些困难。一个简单的 WebView 应用程序。
我收到此错误消息:
Importation error. The domain name "https://chimeria.net" you specified is not valid Enter a valid domain name.
其中https://chimeria.net是WebView中嵌入网站的url...
阅读文档后 (https://developers.google.com/digital-asset-links/v1/getting-started):
- 我创建了一个 json 文件 https://chimeria.net/.well-known/assetlinks.json
我从 My Developer Play 商店页面的“应用程序签名”选项卡中获取了 SHA256 值。
screenshot of where i picked up the SHA546 KEY
- 我在应用程序的 AndroidManifest.xml 中添加了这一行:
<meta-data android:name="asset_statements" android:resource="@string/asset_statements" />
- 我在应用程序的 res/values/strings.xml 文件中添加了这个
<string name="asset_statements">
[{
\"relation\": [\"delegate_permission/common.share_location\"],
\"target\": {
\"namespace\": \"web\",
\"site\": \"https://chimeria.net\"
}
}]
</string>
- 稍后在我的清单文件中,我声明
<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="http" android:host="https://chimeria.net" />
<data android:scheme="https" />
</intent-filter>
- 该应用程序是使用 Android Studio(Android App Bundle)创建的,它给了我一个 .aab 文件。
无论我怎么尝试,我的应用程序都被拒绝了,因为 link 没有被接受。 最后我在一天内浪费了所有可能的尝试。 有人会知道我做错了什么吗?
感谢您的帮助
chimeria.net
是主机,https
或http
是方案。
您可能想将清单更改为:
<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="http" android:host="chimeria.net" />
<data android:scheme="https" android:host="chimeria.net" />
</intent-filter>