【发布时间】:2021-06-10 05:34:33
【问题描述】:
我已经在 Google Play Store 上发布了应用。在我尝试过的任何运行 Android TV 的设备上的 Google Play 商店应用程序中都找不到它。我可以使用它的名称在 Google Play 上找到它,但它无法安装在我的 Android TV 设备上。此应用在 Play 管理中心中有 649 个标记为受支持的设备。我什至在我的设备列表中将一台设备标记为受支持。它是谷歌 Chromecast 谷歌电视。但它也不兼容,我也无法在此设备上安装我的应用程序。有没有人在使用 Android TV 应用时遇到过类似的情况?
这是我的清单。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.xxx">
<uses-permission android:name="android.permission.INTERNET" />
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<uses-feature
android:name="android.software.leanback"
android:required="true" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/Theme.Leanback">
<activity
android:name=".MainActivity"
android:banner="@mipmap/icon_androidtv"
android:icon="@mipmap/icon_androidtv"
android:label="@string/app_name"
android:logo="@mipmap/icon_androidtv">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
是的,我的应用程序非常简单。只有一个视图,上面有一个 WebView。当然,该应用程序可以直接从 Android Studio 安装在任何 Android TV 设备上。我是否应该更改 AndroidManifest 中的某些内容以使其与 Android TV 设备兼容?
【问题讨论】:
标签: android google-play android-tv