我將我的草稿動態壁紙.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