我使用AndEngine 1.0开发了一款适用于手机的应用程序,它是一个动态壁纸。
刚刚将我的应用程序上传到Play商店后,我得到了:支持的设备0 。应用程序已激活,这是我的清单:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="some.package"
android:versionCode="4"
android:versionName="1.0">
<uses-sdk
android:minSdkVersion="15" android:targetSdkVersion="15"
/>
<uses-feature android:name="android.software.live_wallpaper"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-feature android:name="android.hardware.camera" android:required="false" />
<uses-feature android:name="android.hardware.camera.autofocus" android:required="false" />
<uses-feature android:name="android.hardware.location" android:required="false" />
<uses-feature android:name="android.hardware.microphone" 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.sensor" android:required="false" />
<uses-feature android:name="android.hardware.usb" android:required="false" />
<uses-feature android:name="android.hardware.wifi" android:required="false" />
<uses-feature android:name="android.hardware.type" android:required="false" />
<application android:icon="@drawable/ic_launcher">
<service
android:name="my.package.Main"
android:enabled="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
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/wallpaper"/>
</service>
</application>
</manifest>
和aapt的输出:
package: name='some.package' versionCode='4' versionName='1.0'
sdkVersion:'15'
targetSdkVersion:'15'
uses-feature:'android.software.live_wallpaper'
uses-permission:'android.permission.READ_EXTERNAL_STORAGE'
uses-feature-not-required:'android.hardware.camera'
uses-feature-not-required:'android.hardware.camera.autofocus'
uses-feature-not-required:'android.hardware.location'
uses-feature-not-required:'android.hardware.location.gps'
uses-feature-not-required:'android.hardware.location.network'
uses-feature-not-required:'android.hardware.microphone'
uses-feature-not-required:'android.hardware.telephony'
uses-feature-not-required:'android.hardware.touchscreen'
uses-feature-not-required:'android.hardware.sensor'
uses-feature-not-required:'android.hardware.usb'
uses-feature-not-required:'android.hardware.wifi'
uses-feature-not-required:'android.hardware.type'
application-icon-160:'res/drawable-mdpi/ic_launcher.png'
application-icon-240:'res/drawable-hdpi/ic_launcher.png'
application-icon-320:'res/drawable-xhdpi/ic_launcher.png'
application: label='' icon='res/drawable-mdpi/ic_launcher.png'
wallpaper
supports-screens: 'small' 'normal' 'large' 'xlarge'
supports-any-density: 'true'
locales: '--_--'
densities: '160' '240' '320'
native-code: 'armebi'
在我的libs /文件夹中,我有andengine-o.jar,android-support.jar,commons-math.jar。整个事情都是用proguard构建的。
可能导致此问题的原因是什么?
(我已经按照关于sof上其他帖子的建议,例如将用户功能设置为false)
答案 0 :(得分:0)
事实证明我在我的libs文件夹中有一个带有.so文件的原生库armebi,一旦我删除了它的设备数量&gt; 0