我正在将我的动态壁纸草稿 .apk 文件上传到 Google Play,但出现此错误:
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>
任何想法或建议表示赞赏!
谢谢,
宾邦