1

I have released an app on the android market. I am trying to target only android 4.0 and higher. I've set the minsdkversion in the manifest to 14. However, when its published to the market, the listing shows "2.3 to 4.2".

Application was built in Android Studio.

What else do I need to do to make it only show up in the market for devices running 4.0 or higher?

 <uses-sdk android:minSdkVersion="14" 
           android:targetSdkVersion="16"
           android:maxSdkVersion="17" />

And it does install on devices from the market on lower versions. I have a number of crash reports from android 2.3.7.

Here is my entire manifest file...

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

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

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

    <uses-sdk
        android:minSdkVersion="14"
        android:targetSdkVersion="16"
        android:maxSdkVersion="17"/>

    <application
        android:allowBackup="true"
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name"
        android:debuggable="false"
        android:theme="@style/AppTheme" >
        <activity
            android:name="com.alford.phase10scorecenter.MainActivity"
            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:label="@string/app_name"
                android:name=".PhaseListViewActivity" >
        </activity>
        <activity
                android:label="@string/app_name"
                android:name=".ViewCurrentPhaseSetActivity" >
        </activity>
        <activity
                android:label="@string/app_name"
                android:name=".CreateEditPhaseSetActivity" >
        </activity>
        <activity android:name="com.google.ads.AdActivity"
            android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>

    </application>

</manifest>
4

1 回答 1

1

I think that this could be the problem. Sometimes Android Studio does not comply with the AndroidManifest. What I mean is the following: to eliminate this possibility, try importing your project in Eclipse with the Android SDK installed as well. Then, clean, build and produce the .pck file. See if the problem persists.

于 2013-06-19T13:54:29.843 回答