1

昨天早上我在 google playstore 上发布了我的应用程序,直到现在它还没有出现在 playstore 中。尽管开发人员控制台上有一条评论说我的应用程序受 0 台设备支持,但我还是发布了它。

我搜索了这个主题,发现它可能是开发者控制台的一个错误。但是现在无法在 Playstore 中找到该应用程序。也许它不是一个错误,它是一个功能:-) 我的应用程序上的某些东西是这个 0 支持设备的原因。我知道该问题还有其他 stackoverflow 主题,但我找不到这些答案的解决方案

这是我的清单,这些 0 设备可能是什么原因

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="de.al.phaba.myApp"
    android:installLocation="preferExternal"
    android:versionCode="1"
    android:versionName="1.0" >

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

    <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" />
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />

    <uses-feature android:name="android.hardware.Location.network" />

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

    <application
        android:name="de.al.phaba.myApp.AttachApplication"
        android:icon="@drawable/camera"
        android:label="@string/app_name"
        android:largeHeap="false"
        android:screenOrientation="nosensor"
        android:theme="@style/AppTheme" >
        <activity
            android:name="de.al.phaba.myApp.activies.MainActivity"
            android:label="@string/title_activity_main"
            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="de.al.phaba.myApp.activies.ActionActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name="de.al.phaba.myApp.activies.FormSelectionActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name="de.al.phaba.myApp.activies.InstanceSelectionActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name="de.al.phaba.myApp.activies.CommentActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name="de.al.phaba.myApp.activies.MultiPhotoSelectActivity"
            android:screenOrientation="portrait" />
        <!-- <activity android:name="de.al.phaba.myApp.activies.Prefs" /> -->
        <activity
            android:name="de.al.phaba.myApp.activies.SettingsActivity"
            android:screenOrientation="portrait" />
        <activity
            android:name="de.al.phaba.myApp.activies.InformationActivity"
            android:screenOrientation="portrait" />

        <service
            android:name="de.al.phaba.myApp.services.AttachService"
            android:icon="@drawable/loading_icon"
            android:label="@string/attachServiceName"
            android:process=":attachServiceBackground" />

        <receiver
            android:name="de.al.phaba.myApp.AttachmentStartupReceiver"
            android:process=":attachServiceBackground" >
            <intent-filter>
                <action android:name="android.intent.action.BOOT_COMPLETED" />
            </intent-filter>
        </receiver>

         <activity
             android:name="org.acra.CrashReportDialog"
             android:excludeFromRecents="true"
             android:finishOnTaskLaunch="true"
             android:launchMode="singleInstance"
             android:theme="@android:style/Theme.Dialog" />

    </application>

    <intent-filter>
        <action android:name="android.intent.action.SEND_MULTIPLE" />

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

        <data android:mimeType="image/*" />
    </intent-filter>

</manifest>
4

1 回答 1

4

试试这个方法。

我有同样的问题来解决这个问题

我在清单中添加了这么多行。

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

    <compatible-screens>

    <!-- small size screens -->
     <screen android:screenSize="small" android:screenDensity="ldpi" />
    <screen android:screenSize="small" android:screenDensity="mdpi" />
    <screen android:screenSize="small" android:screenDensity="hdpi" />
    <screen android:screenSize="small" android:screenDensity="xhdpi" />

    <!--Only hdpi and xhdpi for normal size screens -->
    <screen android:screenSize="normal" android:screenDensity="ldpi" />
    <screen android:screenSize="normal" android:screenDensity="mdpi" />
    <screen android:screenSize="normal" android:screenDensity="hdpi" />
    <screen android:screenSize="normal" android:screenDensity="xhdpi" />

    <!-- all large size screens -->
    <screen android:screenSize="large" android:screenDensity="ldpi" />
    <screen android:screenSize="large" android:screenDensity="mdpi" />
    <screen android:screenSize="large" android:screenDensity="hdpi" />
    <screen android:screenSize="large" android:screenDensity="xhdpi" />

    <!-- all xlarge size screens -->
    <screen android:screenSize="xlarge" android:screenDensity="ldpi" />
    <screen android:screenSize="xlarge" android:screenDensity="mdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="hdpi" />
    <screen android:screenSize="xlarge" android:screenDensity="xhdpi" />

    <!-- Special case for Nexus 7 -->
    <screen android:screenSize="large" android:screenDensity="213" />

    </compatible-screens>

编辑: 我检查了这个标签是没有用的,把它从你的清单中删除。

<uses-feature android:name="android.hardware.Location.network" />
于 2013-01-25T08:20:21.977 回答