【发布时间】:2015-11-18 17:24:26
【问题描述】:
我想在 Google Play 上发布我的应用,但是当我上传我的 .apk 文件时,它显示它被 0 台设备支持。我知道已经有一些关于此的主题,但我没有在其中任何一个中找到解决方案。下面我附上我的 android manifest 的源代码。我还想提一下,我正在为这个应用程序使用 LibGDX,它是一个 Android 动态壁纸。在测试设备和模拟器上一切正常。感谢您的回答。
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.caller.generationslwp.android"
android:versionCode="1"
android:versionName="1.0.1" >
<uses-sdk android:minSdkVersion="11" android:targetSdkVersion="21" />
<uses-feature android:name ="android:software.live_wallpaper" android:required="true"></uses-feature>
<uses-feature android:glEsVersion="0x00020000" android:required="true"></uses-feature>
<uses-feature android:name="android.hardware.touchscreen" android:required="true"></uses-feature>
<supports-screens android:resizeable="true"
android:smallScreens="true"
android:normalScreens="true"
android:largeScreens="true"
android:xlargeScreens="true"
android:anyDensity="true"
/>
<application
android:allowBackup="false"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
>
<service android:name =".LiveWallpaperAndroid"
android:label = "@string/app_name"
android:icon = "@drawable/ic_launcher"
android:permission = "android.permission.BIND_WALLPAPER" >
<intent-filter>
<action android:name="android.service.wallpaper.WallpaperService" />
</intent-filter>
<meta-data android:name ="android.service.wallpaper"
android:resource ="@xml/livewallpaper" />
</service>
<activity
android:name="com.caller.generationslwp.android.Settings"
android:exported="true"
android:label="@string/preview_app_name">
</activity>
</application>
</manifest
>
【问题讨论】:
-
我无法在此代码中检测到错误:您的 apk 大小是多少,是否大于 50MB?
-
不,它只有大约 4 MB,不能是清单中缺少的重要内容吗?或者不能是 Libgdx 库的问题?他们使用 Gradle 来生成项目,我对它不太熟练,所以 gradle 不能是原因吗?
标签: android xml libgdx live-wallpaper google-console-developer