本文介绍了的Nexus 7支持Android的应用程序清单大会的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序,有下列AndroidManifest.xml中。上传到谷歌播放后,的Nexus 7被列为不支持的设备,我试图找出原因。当然,谷歌播放不告诉你为什么还是什么权限或使用该清单是不被支持的限制吧。的code以下哪一部分的任何想法引起了Nexus 7被列为不支持?

 < XML版本=1.0编码=UTF-8&GT?;
<舱单的xmlns:机器人=htt​​p://schemas.android.com/apk/res/android
    包=com.xxxx.xxxx.applet
    安卓版code =X
    机器人:VERSIONNAME =x.x>

    <用途-SDK
        安卓的minSdkVersion =12
        机器人:targetSdkVersion =14/>

    <使用-权限的Andr​​oid:名称=android.permission.WRITE_EXTERNAL_STORAG​​E/>
    <使用-权限的Andr​​oid:名称=android.permission.INTERNET对/>
    <使用-权限的Andr​​oid:名称=android.permission.ACCESS_NETWORK_STATE/>
    <使用-权限的Andr​​oid:名称=android.permission.CAMERA/>
    <使用-权限的Andr​​oid:名称=android.permission.ACCESS_FINE_LOCATION/>

    <支持屏
        机器人:anyDensity =真
        机器人:largeScreens =真
        机器人:normalScreens =真
        机器人:smallScreens =假
        机器人:xlargeScreens =真正的>
    < /支持屏>

    <应用
        机器人:名称=com.xxxx.xxxx.xxxx.xxxx
        机器人:hardwareAccelerated =真
        机器人:图标=@可绘制/ ic_launcher
        机器人:标签=@字符串/ APP_NAME
        机器人:largeHeap =真
        机器人:标志=@可绘制/ ic_launcher
        机器人:主题=@安卓风格/ Theme.Holo>

        <活动
            机器人:名称=MainActivity
            机器人:configChanges =keyboardHidden |定位
            机器人:图标=@可绘制/ ic_launcher
            机器人:标签=@字符串/ APP_NAME
            机器人:launchMode =singleTop>
            <意向滤光器>
                <作用机器人:名称=android.intent.action.MAIN/>

                <类机器人:名称=android.intent.category.LAUNCHER/>
                <类机器人:名称=android.intent.category.DEFAULT/>
            &所述; /意图滤光器>

            &所述;元数据
                机器人:名称=android.hardware.usb.action.USB_DEVICE_ATTACHED
                机器人:资源=@ XML / device_list/>
        < /活性GT;
< /舱单>
 

解决方案

本之一:

 <使用-权限的Andr​​oid:名称=android.permission.CAMERA/>
 

这是一个意外很多,因为Nexus的7确实有面对镜头前,但似乎并不指望这个特定权限的目的。

I have an Android Application that has the AndroidManifest.xml listed below. After uploading to Google Play, the Nexus 7 is listed as an UNSUPPORTED device and I am trying to figure out why. Of course Google Play doesn't tell you why or what permission or use of the manifest is restricting it from being supported. Any ideas of which part of the code below is causing the Nexus 7 to be listed as unsupported?

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

    <uses-sdk
        android:minSdkVersion="12"
        android:targetSdkVersion="14" />

    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

    <supports-screens
        android:anyDensity="true"
        android:largeScreens="true"
        android:normalScreens="true"
        android:smallScreens="false"
        android:xlargeScreens="true" >
    </supports-screens>

    <application
        android:name="com.xxxx.xxxx.xxxx.xxxx"
        android:hardwareAccelerated="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:largeHeap="true"
        android:logo="@drawable/ic_launcher"
        android:theme="@android:style/Theme.Holo" >

        <activity
            android:name="MainActivity"
            android:configChanges="keyboardHidden|orientation"
            android:icon="@drawable/ic_launcher"
            android:label="@string/app_name"
            android:launchMode="singleTop" >
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />

                <category android:name="android.intent.category.LAUNCHER" />
                <category android:name="android.intent.category.DEFAULT" />
            </intent-filter>

            <meta-data
                android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED"
                android:resource="@xml/device_list" />
        </activity>
</manifest>
解决方案

This one:

<uses-permission android:name="android.permission.CAMERA" />

It comes as a surprise to many because the Nexus 7 does have a front facing camera, but it seems that it does not count for the purposes of this particular permission.

这篇关于的Nexus 7支持Android的应用程序清单大会的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-04 15:21