首页 > 解决方案 > 不支持的硬件使用:Android TV 应用被拒绝

问题描述

我们目前在 Android 中有一个应用程序,我们正在尝试将其添加到 Android TV 应用程序商店。由于我认为是模棱两可的原因,它似乎不断被拒绝。你可以看到下面的截图。电子邮件中给出的链接指向

应用拒绝电子邮件

我们的清单:

<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.GET_ACCOUNTS"/>
<uses-permission android:name="android.permission.MANAGE_ACCOUNTS"/>
<uses-permission android:name="android.permission.AUTHENTICATE_ACCOUNTS"/>
<uses-permission android:name="android.permission.REQUEST_INSTALL_PACKAGES"/>

<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<uses-feature android:name="android.software.leanback" android:required="true"/>
<uses-feature android:name="android.hardware.faketouch" android:required="false"/>
<uses-feature android:name="android.hardware.telephony" android:required="false"/>
<uses-feature android:name="android.hardware.camera" android:required="false"/>
<uses-feature android:name="android.hardware.nfc" android:required="false"/>
<uses-feature android:name="android.hardware.location.gps" android:required="false"/>
<uses-feature android:name="android.hardware.microphone" android:required="false"/>
<uses-feature android:name="android.hardware.sensor" android:required="false"/>

<uses-sdk
    android:minSdkVersion="7"
    android:targetSdkVersion="19"/>

<application
    android:icon="@drawable/ic_launcher"
    android:theme="@android:style/Theme.NoTitleBar"
    android:banner="@drawable/testfairybanner"
    android:label="@string/app_name">
    <activity
        android:name="com.testfairy.app.MobileMainActivity"
        android:theme="@android:style/Theme.NoTitleBar"
        android:screenOrientation="portrait"
        android:label="@string/app_name">
        <intent-filter>
            <action android:name="android.intent.action.MAIN"/>
            <category android:name="android.intent.category.LAUNCHER"/>
        </intent-filter>
    </activity>

    <activity
        android:name=".TvMainActivity"
        android:label="@string/app_name"
        android:screenOrientation="landscape"
        android:theme="@style/Theme.Leanback">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
        </intent-filter>
    </activity>

    <provider
        android:name="android.support.v4.content.FileProvider"
        android:authorities="${applicationId}.provider"
        android:exported="false"
        android:grantUriPermissions="true">
        <meta-data
            android:name="android.support.FILE_PROVIDER_PATHS"
            android:resource="@xml/provider_paths"/>
    </provider>

    <service android:name=".AccountAuthenticatorService" android:exported="true" android:process=":auth">
        <intent-filter>
            <action android:name="android.accounts.AccountAuthenticator" />
        </intent-filter>
        <meta-data android:name="android.accounts.AccountAuthenticator" android:resource="@xml/authenticator" />
    </service>
</application>

据我所知,我已经满足了 Android TV 所需的所有要求,但是,该应用程序继续被拒绝。如果有人遇到此问题并已解决,我真的很想知道您是如何解决它的。

标签: androidandroid-tv

解决方案


添加到您的清单:

<uses-feature android:name="android.hardware.screen.portrait" android:required="false"/>

如果你仔细看,这实际上是在你被引导到的页面上提到的。由于某种原因,同一页面上提供的示例中缺少此行。


推荐阅读