发布后的应用程序与我的设备不兼容
App after release not compatible with my device
我最近在 google Play 商店上发布了我的第一个应用程序,当我想在我的 phone 上下载它时,我开发了它,商店说不支持该设备。当我检查支持的设备列表时,它们都是平板电脑,没有 phones.
这是我的清单:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
package="com.thejuanandonly.schoolapp">
<supports-screens android:requiresSmallestWidthDp="480" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:theme="@style/Widget.AppCompat.PopupWindow">
</uses-permission>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_pls"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/DefaultTheme"
android:hardwareAccelerated="true"
android:largeHeap="true">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ScheduleActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/AppTheme"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
<activity
android:name=".TaskAdder"
app:theme="@style/ToolBarStyle"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
<activity android:name=".SubjectDetailActivity"
android:label="@string/app_name"
android:excludeFromRecents="true"
android:screenOrientation="portrait">
</activity>
<activity android:name=".PictureGroupActivity"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
<activity android:name=".NotesDetailActivity"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
<receiver android:process=":remote" android:name=".NotificationRecieverActivity"></receiver>
<activity android:name=".LoginActivity"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
<activity android:name=".GridViewPager"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/Theme.Transparent"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
</application>
</manifest>
<supports-screens android:requiresSmallestWidthDp="480" />
当然在那个设置中看起来不太好。
以下是 Android 文档对此的说明:
Starting with HONEYCOMB_MR2, this is the new way to specify the
minimum screen size an application is compatible with. This attribute
provides the required minimum "smallest screen width" (as per the
-swNNNdp resource configuration) that the application can run on. For example, a typical phone screen is 320, a 7" tablet 600, and a 10"
tablet 720. If the smallest screen width of the device is below the
value supplied here, then the application is considered incompatible
with that device. If not supplied, then any old smallScreens,
normalScreens, largeScreens, or xlargeScreens attributes will be used
instead.
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form
"@[package:]type:name") or theme attribute (in the form
"?[package:][type:]name") containing a value of this type.
Constant Value: 16843620 (0x01010364)
如果您也想支持手机,则应删除此行。
我最近在 google Play 商店上发布了我的第一个应用程序,当我想在我的 phone 上下载它时,我开发了它,商店说不支持该设备。当我检查支持的设备列表时,它们都是平板电脑,没有 phones.
这是我的清单:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
package="com.thejuanandonly.schoolapp">
<supports-screens android:requiresSmallestWidthDp="480" />
<uses-permission
android:name="android.permission.WRITE_EXTERNAL_STORAGE"
android:theme="@style/Widget.AppCompat.PopupWindow">
</uses-permission>
<uses-permission android:name="android.permission.VIBRATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK"/>
<application
android:allowBackup="true"
android:icon="@mipmap/ic_pls"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/DefaultTheme"
android:hardwareAccelerated="true"
android:largeHeap="true">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".ScheduleActivity"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/AppTheme"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
<activity
android:name=".TaskAdder"
app:theme="@style/ToolBarStyle"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
<activity android:name=".SubjectDetailActivity"
android:label="@string/app_name"
android:excludeFromRecents="true"
android:screenOrientation="portrait">
</activity>
<activity android:name=".PictureGroupActivity"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
<activity android:name=".NotesDetailActivity"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
<receiver android:process=":remote" android:name=".NotificationRecieverActivity"></receiver>
<activity android:name=".LoginActivity"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
<activity android:name=".GridViewPager"
android:configChanges="orientation|keyboardHidden|screenSize"
android:theme="@style/Theme.Transparent"
android:label="@string/app_name"
android:excludeFromRecents="true">
</activity>
</application>
</manifest>
<supports-screens android:requiresSmallestWidthDp="480" />
当然在那个设置中看起来不太好。
以下是 Android 文档对此的说明:
Starting with HONEYCOMB_MR2, this is the new way to specify the minimum screen size an application is compatible with. This attribute provides the required minimum "smallest screen width" (as per the -swNNNdp resource configuration) that the application can run on. For example, a typical phone screen is 320, a 7" tablet 600, and a 10" tablet 720. If the smallest screen width of the device is below the value supplied here, then the application is considered incompatible with that device. If not supplied, then any old smallScreens, normalScreens, largeScreens, or xlargeScreens attributes will be used instead.
Must be an integer value, such as "100".
This may also be a reference to a resource (in the form "@[package:]type:name") or theme attribute (in the form "?[package:][type:]name") containing a value of this type.
Constant Value: 16843620 (0x01010364)
如果您也想支持手机,则应删除此行。