我已经在Google Play商店上发布了应用程序。但是我尝试使用运行Android TV的任何设备上的Google Play商店应用,都无法找到我的应用程序。我可以通过使用应用程序的名称在Google Play中找到它,但是在那里它无法安装在我的Android TV设备上。Play控制台为此应用程序标记了649个支持设备。在我的设备列表中,我甚至有一个标记为受支持的设备。这是谷歌Chromecast Google TV。但它也不兼容,我也无法在该设备上安装我的应用程序。是否有人在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设备吗?