我在Android电子市场上遇到了一个奇怪的错误。由于以下错误,我无法下载我的应用 - “此项目与您的设备不兼容”。
由于我是此应用的开发者,我可以成功安装并运行此功能,但Android Market会给我一个错误。任何决议,想法? Android应用了哪种过滤器,我可以通过在清单文件中添加任何标记来解决这个问题吗?
这是我的清单文件。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.smartscreen_chnagedname"
android:versionCode="3"
android:versionName="1.2">
<uses-sdk android:minSdkVersion="7" android:targetSdkVersion="7" />
<uses-permission android:name="android.permission.READ_SMS"></uses-permission>
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.CHANGE_WIFI_STATE"></uses-permission>
<uses-permission android:name="android.permission.BLUETOOTH"></uses-permission>
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN"></uses-permission>
<uses-permission android:name="android.permission.WRITE_SETTINGS"></uses-permission>
<uses-permission android:name="android.permission.STATUS_BAR"></uses-permission>
<uses-permission android:name="android.permission.VIBRATE"></uses-permission>
<application android:icon="@drawable/icon" android:label="@string/app_name" >
<activity android:name="act_MainSmartScreen"
android:label="@string/app_name"
android:configChanges = "orientation"
android:screenOrientation = "portrait"
android:theme="@android:style/Theme.NoTitleBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
</activity>
<receiver android:name="Ser_ServiceStartupIntentReceiver" android:permission="android.permission.RECEIVE_BOOT_COMPLETE" >
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
<category android:name="android.intent.category.HOME" />
</intent-filter>
</receiver>
<service android:name="serv_MainSmartScreen">
</service>
<activity android:name="act_ListViewForSelectingApps"
android:screenOrientation = "portrait"></activity>
<activity android:name="act_ListViewForSelectionAlbums"
android:screenOrientation = "portrait"></activity>
</application>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.DISABLE_KEYGUARD" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<uses-permission android:name="android.permission.CALL_PHONE"></uses-permission>
<uses-permission android:name="android.permission.CALL_PRIVILEGED"></uses-permission>
<uses-permission android:name="android.permission.GET_ACCOUNTS" />
<uses-permission android:name="android.permission.READ_CONTACTS" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
</manifest>
答案 0 :(得分:3)
添加用途功能,为我们启用了全世界。我们的应用程序可选配摄像头/无线/蓝牙/电话/麦克风。将android:required =“false”添加到uses-feature对我们来说是个窍门。
<uses-feature android:name="android.hardware.bluetooth"
android:required="false" />
<uses-feature
android:name="android.hardware.camera"
android:required="false" />
<uses-feature
android:name="android.hardware.telephony"
android:required="false" />
<uses-feature
android:name="android.hardware.wifi"
android:required="false" />
<uses-feature
android:name="android.hardware.microphone"
android:required="false" />
答案 1 :(得分:2)
在清单文件中添加以下行,看看它是否能解决您的问题。
<supports-screens
android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"/>