"你的设备是不是与此版本&QUOT兼容; [英] "your device isn't compatible with this version"
问题描述
我把一个应用程序在剧中店和我的朋友,谁是运行4.0.3上的两个设备,尝试安装我的应用程序时,得到以下信息:您的设备与此版本不兼容。
一台设备允许其安装和其他没有。我允许API 3-15和两个设备4.0.3。什么问题?
< XML版本=1.0编码=UTF-8&GT?;
<使用-SDK
安卓的minSdkVersion =4/>
<使用-权限的Android:名称=android.permission.WRITE_EXTERNAL_STORAGE/>
<应用
机器人:名称=。CalcApp
机器人:图标=@可绘制/ ic_launcher
机器人:标签=@字符串/ APP_NAME
机器人:主题=@风格/ MainTheme>
<活动机器人:名称=。CalcActivity>
< /活性GT;
<活动
机器人:NAME =prefsActivity
机器人:标签=@字符串/ prefs_name/>
<活动
机器人:名称=。CalcTabView
机器人:标签=@字符串/ APP_NAME>
<意向滤光器>
<作用机器人:名称=android.intent.action.MAIN/>
<类机器人:名称=android.intent.category.LAUNCHER/>
&所述; /意图滤光器>
< /活性GT;
<活动机器人:名称=。AboutActivity>< /活性GT;
<活动机器人:HistoryActivityNAME = />
<活动机器人:AnalysisActivityNAME = />
< /用途>
仔细检查<使用特征>
标记在 AndroidManifest。 XML
文件。这听起来像您的应用需要一个功能,一台设备不支持。
您也应该检查,看看是否在以下声明的的AndroidManifest.xml
,
<使用-SDK
安卓的minSdkVersion =3/>
您希望您的应用程序(通过15没有的API 3)工作运行API 3器件及以上。上面的code将确保您的应用程序与上述API 3.请注意,您通常不希望使用 Android的所有设备的工作原理:maxSdkVersion
属性(如果你目前正在使用的话)。
I put an app in the play store and my friend, who is running 4.0.3 on two devices, got the following message when trying to install my app : "your device isn't compatible with this version".
One device allows it to install and the other doesn't. I allow for API 3-15 and both devices are 4.0.3. What's the problem?
<?xml version="1.0" encoding="utf-8"?>
<uses-sdk
android:minSdkVersion="4" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:name=".CalcApp"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/MainTheme" >
<activity android:name=".CalcActivity" >
</activity>
<activity
android:name=".PrefsActivity"
android:label="@string/prefs_name" />
<activity
android:name=".CalcTabView"
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:name=".AboutActivity"></activity>
<activity android:name=".HistoryActivity" />
<activity android:name=".AnalysisActivity" />
</application>
Double check the <uses-feature>
tag in your AndroidManifest.xml
file. It sounds like your application requires a feature that one of the devices doesn't support.
You should also check to see if you have the following declared in your AndroidManifest.xml
,
<uses-sdk
android:minSdkVersion="3" />
You want your application to work for devices running API 3 and above (not APIs 3 through 15). The code above will ensure that your application works with all devices above API 3. Note that you generally don't want to use the android:maxSdkVersion
attribute (if you are currently using it).
这篇关于&QUOT;你的设备是不是与此版本&QUOT兼容;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!