我将我的草稿动态壁纸.apk文件上传到谷歌播放,但我得到这个错误:上传.apk到谷歌播放时出现错误:此文件无效:错误获取'android name'属性的服务:属性不是字符串值
this file is invalid: error getting 'android name' attribute for service: attribute is not a string value
我在模拟器+真实的设备和检验一切工作正常。
我在上传之前签署了apk文件。
一些在线资源,对我说,是因为在manifest.xml中的这个问题,但我仍然无法找到问题..
这里是我的manifest.xml:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.test.wallpaper"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk android:minSdkVersion="8" />
<uses-feature android:name="android.software.live_wallpaper" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name" >
<activity android:name="com.test.wallpaper.SplashActivity"
android:label="@string/app_name" android:configChanges="keyboardHidden"
android:windowSoftInputMode="adjustPan" android:launchMode="singleTop"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<service
android:permission="android.permission.BIND_WALLPAPER"
android:name = "@string/app_name"
android:label = "@string/app_name"
android:icon = "@drawable/icon"
>
<intent-filter>
<action android:name="android.service.wallpaper.WallpaperService" />
</intent-filter>
<meta-data android:name="android.service.wallpaper" android:resource="@xml/wallpaper"/>
</service>
<activity
android:label = "Settings"
android:name = "Settings"
android:theme = "@android:style/Theme.Black"
android:exported = "true">
</activity>
<activity
android:name = "GalleryPreference"
android:label = "GalleryPreference"
android:theme = "@android:style/Theme.Black"
android:exported = "true"
/>
<activity
android:name = "GalleryActivity"
android:label = "GalleryActivity"
android:exported = "true"
/>
<service android:name = "com.test.wallpaper.AdapterService" android:enabled="true" android:exported="true"/>
</application>
</manifest>
任何思想的想法或建议表示赞赏!
谢谢
Binbon
嗨,谢谢你的回复。你是正确的,这是根本原因,我改变它,它工作正常。非常感谢 – Binbon