Android 谷歌电视在安卓市场的兼容性问题

Android 谷歌电视在安卓市场的兼容性问题,android,google-tv,android-market-filtering,Android,Google Tv,Android Market Filtering,我需要我的应用程序在谷歌电视上运行,但无论我对android清单做了什么,大部分谷歌电视设备似乎都不受支持。有没有办法找出我做错了什么,或者为什么该应用程序被拒绝用于特定设备?如果我至少能让它在索尼NSZ-GS7/GX70上运行,我会非常高兴。这是apk的aapt转储的副本 package: name='HarshMarshmallow.app' versionCode='2' versionName='1.0.1' sdkVersion:'11' targetSdkVersion:'17' u

我需要我的应用程序在谷歌电视上运行,但无论我对android清单做了什么,大部分谷歌电视设备似乎都不受支持。有没有办法找出我做错了什么,或者为什么该应用程序被拒绝用于特定设备?如果我至少能让它在索尼NSZ-GS7/GX70上运行,我会非常高兴。这是apk的aapt转储的副本

package: name='HarshMarshmallow.app' versionCode='2' versionName='1.0.1'
sdkVersion:'11'
targetSdkVersion:'17'
uses-feature-not-required:'android.hardware.touchscreen'
uses-permission:'android.permission.INTERNET'
uses-permission:'android.permission.ACCESS_NETWORK_STATE'
uses-permission:'android.permission.ACCESS_WIFI_STATE'
application-label:'HarshMarshmallow'
application-icon-120:'res/drawable-ldpi/ic_launcher.png'
application-icon-160:'res/drawable-mdpi/ic_launcher.png'
application-icon-240:'res/drawable-hdpi/ic_launcher.png'
application-icon-320:'res/drawable-xhdpi/ic_launcher.png'
application-icon-480:'res/drawable-xxhdpi/ic_launcher.png'
application: label='HarshMarshmallow' icon='res/drawable-mdpi/ic_launcher.png'
launchable-activity: name='HarshMarshmallow.app.activityMain'  label='' icon=''
uses-feature:'android.hardware.wifi'
uses-implied-feature:'android.hardware.wifi','requested android.permission.ACCES
S_WIFI_STATE, android.permission.CHANGE_WIFI_STATE, or android.permission.CHANGE
_WIFI_MULTICAST_STATE permission'
uses-feature:'android.hardware.screen.landscape'
uses-implied-feature:'android.hardware.screen.landscape','one or more activities
have specified a landscape orientation'
main
other-activities
other-services
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--'
densities: '120' '160' '240' '320' '480'
native-code: 'armeabi' 'armeabi-v7a' 'mips' 'x86'
编辑:

这是我的舱单副本:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="HarshMarshmallow"
android:versionCode="3"
android:versionName="1.0.2" >

<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="17" />

<uses-feature android:name="android.hardware.touchscreen" android:required="false"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />

<application
    android:name="applicationGlobalVars"
    android:allowBackup="true"
    android:icon="@drawable/ic_launcher"
    android:label="@string/app_name"
    android:theme="@android:style/Theme.Light.NoTitleBar">
    <service android:name="com.paypal.android.sdk.payments.PayPalService" android:exported="false"/>
    <activity android:name="com.paypal.android.sdk.payments.PaymentActivity" />
    <activity android:name="com.paypal.android.sdk.payments.LoginActivity" />
    <activity     android:name="com.paypal.android.sdk.payments.PaymentMethodActivity" />
    <activity android:name="com.paypal.android.sdk.payments.PaymentConfirmActivity" />
    <activity
        android:name="io.card.payment.CardIOActivity"
        android:configChanges="keyboardHidden|orientation" />
    <activity android:name="io.card.payment.DataEntryActivity" />
    <activity
        android:name="HarshMarshmallow.activityMain"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:screenOrientation="landscape" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />
            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity android:name="activityAddChannel"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:screenOrientation="landscape"></activity>
    <activity android:name="activityCurrentChannels"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:screenOrientation="landscape"></activity>
    <activity android:name="activityCurrentShows"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:screenOrientation="landscape"></activity>
    <activity android:name="activityDeleteFromChannel"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:screenOrientation="landscape"></activity>
    <activity android:name="activityLoadingScreen"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:screenOrientation="landscape">
    </activity>
    <activity android:name="activityMediaPlayer"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:screenOrientation="landscape"></activity>
    <activity android:name="activityNameChannel"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:screenOrientation="landscape"></activity>
    <activity android:name="activityNetworkSettings"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:screenOrientation="landscape"></activity>
    <activity android:name="activityTutorial"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:screenOrientation="landscape">
    </activity>
    <activity android:name="activityHelp"
        android:theme="@android:style/Theme.Black.NoTitleBar.Fullscreen"
        android:screenOrientation="landscape"></activity>
</application>

</manifest>

编辑2:

所以我刚收到谷歌的回复

感谢联系Google Play开发者支持。我们调查 您报告并发现您的应用程序不可用的行为 与NSZGS7兼容,因为与以下内容冲突:无 指定的本机平台(armeabi、armeabi-v7a、mips、x86) 该设备支持的。不幸的是,我们无法提供 更详细的分析


本机平台是否连接到我在应用程序中包含的库,或者是否存在某种我忘记关闭的首选项?我将eclipse与ADT一起使用。

一些索尼设备需要清单中的uses library标记。我不确定这是否是其中之一,但在应用程序标记下可能需要以下内容:

<uses-library android:name="com.sony.tablet" />


确保没有方向代码更改。因为它是一台电视,所以应用程序不能真正使用任何类型的定向功能。

所以我回到这里来回答这个问题,因为我相信其他人将来会遇到这个问题。问题与aapt转储底部的本机代码行有关。尽管它可能在你的个人谷歌电视上完全正常工作,谷歌声称它在商店里是不兼容的

要解决Eclipse中的问题,首先单击您的项目并导航到libs部分。如果本节中的文件夹中有任何内容,它将无法在谷歌电视上运行。删除文件夹,从构建路径中删除库,并从代码和android清单中删除引用(如果有)。我的问题来自paypal库的加入,但这应该是解决这个问题的一般方法

希望这有帮助。记住:

1) 你不能用谷歌电视进行肖像定位

2) 您需要添加以下内容:

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

给你的androidmanifest


3) 本机代码行不能位于aapt转储的底部。这将导致谷歌电视被过滤

你的Manifest.xml呢?将清单添加到帖子索尼谷歌电视在Android 3.2版或API级别13I上,我需要始终为应用程序实例化方向图,无论是在手机上还是谷歌电视上。在清单中声明景观会导致谷歌电视设备停止工作吗?我不确定这一点,我知道我的应用程序弄乱了清单中的方向,然后谷歌电视不再受支持。值得一试。