Reputation: 6936
I'm getting the following error when uploading an APK file in Google Play Developer Console:
Upload failed
You need to check the icon inside your APK because it is not valid.
All answers on SO I've found seem to suggest that you have to convert Vector Drawable icons to PNGs to get rid of this error.
Why is that necessary? Isn't it the whole point of Vector Drawables to avoid generating PNGs manually?
Edit:
Converting my app icon to PNG actually did help. But I still can't understand why is this necessary. Isn't Android Studio supposed to generate PNGs at build time?
Upvotes: 8
Views: 3776
Reputation: 1
I have a same issue to upload app bundle in play Store, and finally I got an answer.
The solution is to go to android->res->drawable
folder just change app icon pixel to 512x512.
Upvotes: 0
Reputation: 103
I had the similar problem but it looks a bit different. I had an additional icon for service notification and I've made it color with no alpha. And set the code to SDK < 21 to display it in color. Somehow this code was removed and this produced the error when uploaded to google. I remastered icon as completely white with transparency holes and it worked. Again - I'm talking about notification icon which can also cause such error.
Upvotes: 1
Reputation: 11527
The Developer Console throws such errors when it's internally down/broken. It seems such issues are fixed within a few hours. I wasn't the only one experiencing it at this time.
I had the same error when trying to upload my updated apk to the Google Play Store. I checked all I could in my project and my apk but never found any issue. After hours of search, which included trying bumping the versionCode on another unmodified, deployed project while having the same error, I started to have doubts on whether my computer was somehow corrupted, or if the Google Play Developer Console went crazy. I retried uploading my apk several hours after the first upload I did, and magically, the error was gone.
It's really bad to reject the fault on ourselves when the real thing that is broken is the Developer Console, but know, it's written here. I hope it helps.
Upvotes: 9