Android TV 应用无法安装在 Android TV 设备上

Android TV app can#39;t be installed on Android TV devices(Android TV 应用无法安装在 Android TV 设备上)

本文介绍了Android TV 应用无法安装在 Android TV 设备上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在 Google Play Store 上发布了应用.在我尝试过的任何运行 Android TV 的设备上的 Google Play 商店应用程序中都找不到它.我可以使用它的名称在 Google Play 上找到它,但它无法安装在我的 Android TV 设备上.此应用在 Play 管理中心中有 649 个标记为受支持的设备.我什至在我的设备列表中将一台设备标记为受支持.它是谷歌 Chromecast 谷歌电视.但它也不兼容,我也无法在此设备上安装我的应用程序.有没有人在使用 Android TV 应用时遇到过类似的情况?

I have already published app on Google Play Store. It can't be found in Google Play Store app on any device running Android TV which I tried. I can find it on Google Play by using its name, but there it can't be installed on my Android TV devices. There are 649 marked as supported devices in the Play Console for this app. I have even one device marked as supported on my device list. It is Google Chromecast Google TV. But it is also not compatible and I can't install my app also on this device. Does anyone experience something like this in the case of Android TV app?

这是我的清单.

<?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 设备兼容?

Yes, my app is soo simple. There is only one view with a single WebView on it. And of course, the app can be installed on any Android TV device directly from Android Studio. Should I change something in the AndroidManifest to make it compatible with Android TV devices?

推荐答案

要分发到 Android TV 设备,您需要在 Google Play 中选择加入.在 Play 管理中心,转到左侧菜单中发布分组中的设置部分.选择高级设置并切换到发布类型选项卡.点击+ 添加发布类型"并选择安卓电视.您必须包含电视分发所需的屏幕截图和横幅.

For distribution to Android TV devices, you need to opt-in within Google Play. In the Play Console, go to the Setup section within the Release grouping in the left hand menu. Select Advanced settings and switch to the Release types tab. Click "+ Add release type" and select Android TV. You have to include the required screenshots and banner for TV distribution.

请注意,Android TV 需要额外审核才能验证 TV 应用质量.

Note that Android TV requires an additional review to validate TV App Quality.

这篇关于Android TV 应用无法安装在 Android TV 设备上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本文标题为:Android TV 应用无法安装在 Android TV 设备上

基础教程推荐