Android : Your APK does not seem to be designed for tablets.

时间:2022-12-22 06:47:45

1. 解决办法:

Add these config in AndroidManifest.xml

<supports-screens android:smallScreens="true"

android:normalScreens="true"

android:largeScreens="true"

android:xlargeScreens="true"

android:anyDensity="true"/>

<uses-feature android:name="android.hardware.camera" android:required="false" />

<uses-feature android:name="android.hardware.wifi" android:required="false" />

<uses-feature android:name="android.hardware.telephony" android:required="false" />

<uses-feature android:name="android.hardware.touchscreen" android:required="false" />

<uses-feature android:name="android.hardware.screen.portrait" android:required="false" />

<uses-feature android:name="android.hardware.screen.landscape" android:required="false" />

.csharpcode, .csharpcode pre
{
font-size: small;
color: black;
font-family: consolas, "Courier New", courier, monospace;
background-color: #ffffff;
/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt
{
background-color: #f4f4f4;
width: 100%;
margin: 0em;
}
.csharpcode .lnum { color: #606060; }

2. 官方解释

About uses-feature

Google Play uses the <uses-feature>elements declared in your app manifest to filter your app from devices that do not meet it's hardware and software feature requirements.

Declared <uses-feature> elements are informational only, meaning that the Android system itself does not check for matching feature support on the device before installing an application. However, other services (such as Google Play) or applications may check your application's <uses-feature> declarations as part of handling or interacting with your application. For this reason, it's very important that you declare all of the features (from the list below) that your application uses.

http://developer.android.com/guide/topics/manifest/uses-feature-element.html

About supports-screens

Lets you specify the screen sizes your application supports and enable screen compatibility mode for screens larger than what your application supports. It's important that you always use this element in your application to specify the screen sizes your application supports.

http://developer.android.com/guide/topics/manifest/supports-screens-element.html

有几个默认就是true,另外几个根据不同的版本默认true或者flase。