[英]Play store says my app is supported by 0 devices
I have recently finished building my first android app. 我最近完成了我的第一个Android应用程序的构建。 I published it to the store today but it says it supports 0 devices.
我今天将它发布到商店,但它说它支持0个设备。 Here is my manifest file
这是我的清单文件
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.guessthepicturespazam.guessit" >
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="נחש את המילה"
android:theme="@style/Theme.AppCompat.NoActionBar" >
<activity
android:name=".MainActivity"
android:configChanges="orientation"
android:label="נחש את המילה"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".GameActivity"
android:configChanges="orientation"
android:label="@string/title_activity_game"
android:screenOrientation="portrait" >
</activity>
<activity
android:name=".Splash"
android:configChanges="orientation"
android:label="נחש את המילה"
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=".StoreActivity"
android:label="@string/title_activity_store" >
</activity>
<activity
android:name=".GameOverActivity"
android:label="@string/title_activity_game_over" >
</activity>
</application>
<supports-screens
android:anyDensity="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:resizeable="true" />
</manifest>
This is my build.grade file: 这是我的build.grade文件:
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "com.GuessTheWordZahal.guessit"
minSdkVersion 10
targetSdkVersion 23
versionCode 2
versionName "1.0.1"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.0.1'
compile 'org.apache.directory.studio:org.apache.commons.io:2.4'
compile 'com.google.android.gms:play-services-ads:7.8.0'
}
I tried looking this problem up online but I couldn't find a problem similar to mine. 我尝试在线查找此问题,但找不到与我类似的问题。 Most apps have no supported devices because they use features that are only available in some or in no devices.
大多数应用没有受支持的设备,因为它们使用的功能仅在某些设备中可用或在某些设备中不可用。 I just can't figure out what's wrong in mine.
我只是不知道我的问题是什么。 I've actually tested this app on my samsung galaxy and it worked fine.
我实际上已经在三星银河上测试了该应用程序,并且运行良好。
You need to provide supported sdkVersion 您需要提供支持的sdkVersion
<uses-sdk
android:minSdkVersion="minimum(e.g "8")"
android:targetSdkVersion="maximum(e.g "22")" />
if you are using Eclipse then mention your minSdkVersion & maxSdkVersion in your manifest file and if you are using Android Studio then mention these in build.gradle file. 如果您使用的是Eclipse,则在清单文件中提及您的minSdkVersion和maxSdkVersion;如果您使用的是Android Studio,请在build.gradle文件中提及它们。
For Eclipse 对于Eclipse
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.guessthepicturespazam.guessit"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8"
android:targetSdkVersion="21"/>
.......................
</manifest>
For Android Studio 对于Android Studio
edit your build.gradle file like as below 如下所示编辑您的build.gradle文件
apply plugin: 'com.android.application'
android {
compileSdkVersion 21
buildToolsVersion "21.1.2"
defaultConfig {
applicationId "com.guessthepicturespazam.guessit"
minSdkVersion 8
targetSdkVersion 21
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
Note: Version name and Version code is important if you want to update your application in future. 注意:如果将来要更新应用程序,则版本名称和版本代码很重要。
Your manifest is incorrect. 您的清单不正确。
<supports-screens>
is currently placed in application tag but should be moved up, to manifest tag. 当前放置在应用程序标记中,但应向上移动以显示标记。 Check out manifest structure https://developer.android.com/guide/topics/manifest/manifest-intro.html#filestruct
查看清单结构https://developer.android.com/guide/topics/manifest/manifest-intro.html#filestruct
I suppose play-store parser couldn't find supports-screens information and decided that there is no screen supported. 我想播放商店解析器找不到支持屏幕的信息,并决定不支持任何屏幕。 Please, correct manifest and let us know.
请纠正清单,并告知我们。 Very interesting issue.
非常有趣的问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.