我尝试在播放市场上传我的应用但发生了错误 - 0个支持的设备。我的清单文件有什么问题?也许设置使用功能标志为假?
<?xml version="1.0" encoding="utf-8"?>
<uses-sdk android:minSdkVersion="14"
android:targetSdkVersion="23"
android:maxSdkVersion="23" />
<supports-screens
android:anyDensity="true"
android:largeScreens="true"
android:normalScreens="true"
android:resizeable="true"
android:smallScreens="true"
android:xlargeScreens="true" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.USE_CREDENTIALS" />
<compatible-screens>
<!-- all normal size screens -->
<screen android:screenSize="normal" android:screenDensity="mdpi" />
<screen android:screenSize="normal" android:screenDensity="hdpi" />
<screen android:screenSize="normal" android:screenDensity="xhdpi" />
<screen android:screenSize="normal" android:screenDensity="480" />
<!-- all large size screens -->
<screen android:screenSize="large" android:screenDensity="mdpi" />
<screen android:screenSize="large" android:screenDensity="hdpi" />
<screen android:screenSize="large" android:screenDensity="xhdpi" />
<screen android:screenSize="large" android:screenDensity="480" />
<!-- all xlarge size screens -->
<screen android:screenSize="xlarge" android:screenDensity="mdpi" />
<screen android:screenSize="xlarge" android:screenDensity="hdpi" />
<screen android:screenSize="xlarge" android:screenDensity="xhdpi" />
<screen android:screenSize="xlarge" android:screenDensity="480" />
</compatible-screens>
<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="SeeLife"
android:theme="@style/AppTheme" >
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<activity
android:name=".project.activity.AuthorizationActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="SeeLife"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="com.vk.sdk.VKServiceActivity"
android:label="ServiceActivity"
android:theme="@style/VK.Transparent" />
<activity
android:name=".project.activity.RegistrationActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/title_activity_registration"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".project.activity.MainActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/title_activity_main"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".project.activity.TodayActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/title_activity_today"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".project.activity.SubcategoriesActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/title_activity_subcategories"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".project.activity.CategoryDetailActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/title_activity_category_detail"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".project.activity.VideoPlayerActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:label="@string/title_activity_video_player" >
</activity>
<activity
android:name=".project.activity.FilmActivity"
android:label="@string/title_activity_film" >
</activity>
<activity
android:name=".project.activity.CommentActivity"
android:label="@string/title_activity_comment" >
</activity>
</application>
答案 0 :(得分:1)
我认为是因为您根据需要设置了android.software.leanback
功能。
此外,RECORD_AUDIO功能意味着Android TV应用程序不支持麦克风的存在