Android应用程序显示了比明显低版本 [英] Android app shows for lower version than manifest
问题描述
我已经发布了Android市场的应用程序。我想只针对Android 4.0及更高版本。我已经在清单设置的minSdkVersion
14.然而,当它发布到市场,清单显示2.3〜4.2。
应用始建于Android的工作室。
还有什么我需要做,使之只能在市场上露面运行4.0或更高版本的设备?
<采用-SDK安卓的minSdkVersion =14
机器人:targetSdkVersion =16
机器人:maxSdkVersion =17/>
和它安装在较低版本从市场上的设备。我有一些在Android 2.3.7崩溃报告。
下面是我的整个清单文件...
<?XML版本=1.0编码=UTF-8&GT?;
<清单的xmlns:机器人=http://schemas.android.com/apk/res/android
包=com.alford.phase10scorecenter
安卓版code =5
机器人:=的versionName1.0> <使用许可权的android:NAME =android.permission.WRITE_EXTERNAL_STORAGE/>
<使用许可权的android:NAME =android.permission.CAMERA/>
<使用许可权的android:NAME =com.android.vending.BILLING/>
<使用许可权的android:NAME =android.permission.INTERNET对/>
<使用许可权的android:NAME =android.permission.ACCESS_NETWORK_STATE/> <使用特征的android:NAME =android.hardware.camera机器人:所需=FALSE/>
<使用特征的android:NAME =android.hardware.camera.front机器人:所需=FALSE/> <用途-SDK
安卓的minSdkVersion =14
机器人:targetSdkVersion =16
机器人:maxSdkVersion =17/> <应用
机器人:allowBackup =真
机器人:图标=@绘制/ ic_launcher
机器人:标签=@字符串/ APP_NAME
机器人:可调试=假
机器人:主题=@风格/ AppTheme>
<活动
机器人:名字=com.alford.phase10scorecenter.MainActivity
机器人:标签=@字符串/ APP_NAME>
&所述;意图滤光器>
<作用机器人:名字=android.intent.action.MAIN/> <类机器人:名字=android.intent.category.LAUNCHER/>
&所述; /意图滤光器>
< /活性GT;
<活动
机器人:标签=@字符串/ APP_NAME
机器人:名字=PhaseListViewActivity。>
< /活性GT;
<活动
机器人:标签=@字符串/ APP_NAME
机器人:名字=ViewCurrentPhaseSetActivity。>
< /活性GT;
<活动
机器人:标签=@字符串/ APP_NAME
机器人:名字=CreateEditPhaseSetActivity。>
< /活性GT;
<活动机器人:名字=com.google.ads.AdActivity
android:configChanges=\"keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize\"/> < /用途>< /清单>
我认为这可能是问题。有时 Android的工作室
不遵守 AndroidManifest
。我的意思是:要消除这种可能性,尝试在 Eclipse中导入您的项目
与的Android SDK
安装为好。然后,清洁,建设和生产 .pck
文件。看看问题仍然存在。
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>
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.
这篇关于Android应用程序显示了比明显低版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!