“您的设备与此版本不兼容"

2023-11-09移动开发问题
8

本文介绍了“您的设备与此版本不兼容"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

我在 Play 商店中放置了一个应用,而我的朋友在两台设备上运行 4.0.3,在尝试安装我的应用时收到以下消息:您的设备与此版本不兼容".

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".

一个设备允许它安装,而另一个不允许.我允许 API 3-15 并且两个设备都是 4.0.3.有什么问题?

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"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.snotyak.basicfuelcalcpro"
    android:versionCode="2"
    android:versionName="1.2.3" >
    <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>
</manifest>

推荐答案

仔细检查 AndroidManifest.xml 文件中的 标签.听起来您的应用程序需要其中一个设备不支持的功能.

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.

您还应该检查您的 AndroidManifest.xml 中是否声明了以下内容,

You should also check to see if you have the following declared in your AndroidManifest.xml,

<uses-sdk
    android:minSdkVersion="3" />

您希望您的应用程序适用于运行 API 3 及更高版本(而不是 API 3 到 15)的设备.上面的代码将确保您的应用程序适用于 API 3 以上的所有设备.请注意,您通常不希望使用 android:maxSdkVersion 属性(如果您当前正在使用它).

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).

这篇关于“您的设备与此版本不兼容"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

The End

相关推荐

从 Documents 目录存储和读取文件 iOS 5
Storing and reading files from Documents directory iOS 5(从 Documents 目录存储和读取文件 iOS 5)...
2024-08-12 移动开发问题
9

如何在使用 cocos2d 的 iphone 应用程序中使用 MYSQL 数据库连接?
How can i use MYSQL database connection in iphone application useing cocos2d?(如何在使用 cocos2d 的 iphone 应用程序中使用 MYSQL 数据库连接?)...
2024-08-12 移动开发问题
5

在 cocos2d 中平滑拖动一个 Sprite - iPhone
Smoothly drag a Sprite in cocos2d - iPhone(在 cocos2d 中平滑拖动一个 Sprite - iPhone)...
2024-08-12 移动开发问题
10

CCScrollView 滚动和触摸事件永远不会触发
CCScrollView scroll and touch events never firing(CCScrollView 滚动和触摸事件永远不会触发)...
2024-08-12 移动开发问题
1

使用 OpenGLES 的抗锯齿去除绳索的锯齿状边缘
removing jagged edges of my ropes using antialiasing of OpenGLES(使用 OpenGLES 的抗锯齿去除绳索的锯齿状边缘)...
2024-08-12 移动开发问题
34

cocos2d 在场景之间移动
cocos2d Moving between scene(cocos2d 在场景之间移动)...
2024-08-12 移动开发问题
2