.APK upload failed - android

Answered by me bellow
When I try to upload my .APK file i get this error:
Upload failed
I have tried cleaning my project, exporting it, and running it about 100 times over a span of almost 24 hours. This is just an updated version of my .APK. I have already successfully uploaded several updated .APK to the play store. I changed the Version and I am using the same keystore for this update as I have for all my other updates. Any suggestions? And sorry that this isn't a code specific problem. Also I only made a small edit to one of my activities.

The problem has nothing to do with using Chrome. The problem is your session is invalid. Using any different browser such as Firefox, Internet Explorer, Opera, etc. would create a new session and allow the upload to work.
The real solution is to just log out and back in because whatever data Google uses to verify the upload is no longer valid, but they still allow you to navigate throughout your developer account like you are logged in with a valid session.

Thank you A-C
The solution to this problem was to use firefox instead of chrome

It's not your browser. Log out and log back in again, a simple page refresh won't do. Crazy I know, but it works. You'll also find your images will fail to upload without an error message.

For me, trying to logout and login again to my account solved the problem (just as mtg168 said)
Hope it helps!

How many times have you tried?
I usually get that once in a while, and when I get it I might get it 4-5 times in a row. Play Store just sucks some times.
Retry and it should work!;o

I think the problem could be that your session has expired. I just ran into the same problem, but when I logged out and then logged back in, the upload worked fine.

May be you need to specifiy a version name different than the one provided in version 2?

In my case, I happened to change the login password before uploading the apk. Sign out and Sign back in again did help.

For me it ended being related to a newline character in my strings.xml
No error message was shown for ~8 tries then it appeared randomly. Was able to upload after changing the newline character to \n from \u000d

Related

"Couldn't upload. Try again." error on Google Play Console

When I try to upload my Android App Bundle to the Google Play Console, I get this generic error message saying "Couldn't upload. Try again.".
I've already tried:
making sure my versionName and versionCode are unique among all uploaded artifacts
making sure that the .aab/.apk is signed with the proper key
re-uploading the .AAB file
re-uploading the .APK file
checking status of google services to make sure that there isn't a mass outage
asking my senior Android dev what's up
How do I resolve this error and upload my .AAB or .APK?
Google Chrome
Use a new Incognito window to upload the .aab or .apk (as mentioned in the comments).
Alternatively, clear the website data:
going to: developer console (F12) > Application > Storage > Clear site data
Screenshot
press F5 to refresh the page
uploading the .apk/.aab again
Safari
Open Preferences >
Privacy > Manage Website Data > Remove All > Done
Here's what worked for me:
After getting the error on play console. Now use 'Add from Library' option instead of 'Upload', and you will find your appbundle that failed to upload there, select it and proceed with further steps.
This problem comes out due to multiple gmail logins on same browser, if the developer account is not the default logged in account. You can solve this by signing out all gmail accounts and login in the specific gmail account.
For my case clearing data, using Incognito or changing browser did not work. So, finally I uploaded an APK file (all previous versions were AAB files) and surprisingly Google Play console accepted it!
Give a chance to APK file if the above answers are not helping you.
Do you have gmail with another account, opened in other tab? If so, sign out from both accounts, then sign in to Google Play console again.
I could simply solve the problem by usinng Firefox instead of Chrome. Nothing else helped. With Chrome the problem remained even after applying all the suggestions above. Chrome 56, OS Ubuntu 16.04
If your zip align is not successful or verification failed at the end of the zip align process, this error is likely to occur. Please analyze whether zip align was successful. Also, you can try uploading both in .apk and .aab format. You are more likely to get a more detailed error hinting a possible cause.
If you're using Unity
I was trying to upload a Unity project. Clearing browser cache, loging out of accounts, trying different browsers, zip align etc. didn't help for me. What did, was to either:
a. Upload an .apk instead of an app bundle.
For some reason, this works completely fine, but app bundles fail every time.
Sadly, apks be unavailable for new apps starting from August 2021 :(
b. Upgrade to a newer version of Unity
Versions that did not work:
2019.4.20
Versions that worked:
2020.3.3
Play Console's error message is not especially helpful, so it's difficult to say exactly what the problem was or what fixed it, but hopefully this will help someone else using Unity.
I haven't tested any Unity versions except those listed above. If you have and also have the necessary stackoverflow rights, feel free to update my list with your own findings.
On Safari:
Preferences -> Privacy -> Manage Website Data -> Google (remove that) did it for me! ;-)
After that error happened to me, I click "Add From Library" and my uploaded app bundle showed up there, and am able to select it.
No need to logout/login or clear the cache/cookies.
After All of trying above, I have just Change the browser from Chrome To "Opera" - and its uploaded very fast. It seems that opera is very fast than chrome.

Uploading App Bundle to Google Play stuck in processing

This post relates to a rapidly changing event.
I signed the app bundle with a generated key using the android studio developer built in tool. I also opted into google play key signing. When I upload the app bundle to the release, it says
"Google Play is generating and optimizing APKs from your Android App Bundle. This may take a few minutes, depending on the size of your app bundle."
But this goes on forever. My bundle is only around 2 MB. Is this normal?
This happened to me and made me stuck for several hours. Finally got the solution,
Make sure the Date and time of your computer is correct at the time of generating the signed APK or app Bundle.
Basically it causes the the certificate to get rejected by Google server, and due to some kind of bug on Google side, the error is not reported to user when user upload App bundles (AAB), but it report back error in case of APK upload
There seem to be an issue on google's side and it seems to be fixed now
I have seen these same symptoms with a different cause, which is what brought me to this question, so I'm offering another potential cause and answer, for others who encounter the situation I did.
That is, I uploaded an APK and when it reached 100% it said "processing..." and stayed in that status forever.
I researched and found this answer, but in my case it was not a temporary problem. Another user mentioned that he had determined that this also happens when posting a 64-bit APK for a release before a 32-bit APK version. Posting the 32-bit APK first works, but when I post a 64-bit APK first, it sits "processing..." forever.
Change your internet connection. I have the same problem too, I've tried using mobile data, wifi in my home but still have the same problem. And then I'm using wifi at my campus, it's so fast and finally I can upload my app bundle without stuck at processing status.
This happened to me now and it was showing "uploading" for about 15 minutes on my fibre connection, So I reloaded the page and uploaded again. It just took seconds to upload that time. So try reloading the page and trying again.

APK signed with a certificate that is not yet valid

I'm trying to publish an app to google play, and it won't allow me, it says:
You uploaded an APK signed with a certificate that is not valid.
You need to sign tour APK with certificate that is currently valid.
Screenshot:
How do I remedy this error?
Solved it by changing the system date of my computer. I set it to today - 2 days and created a new keystore, tried to upload and it worked.
I ran into this gotcha but my solution was different. My system time was valid, but maybe it was several minutes off. Anyway if you run into this message but appear to have a correct system time, here are two things I did which worked
Wait several minutes (e.g. search stackoverflow for this)
Rename the .apk.
Then try to upload again. It just worked for me the second time.
Another issue I ran into was ant release reporting that the keystore was tampered with or my password was incorrect when I signed my app. All I did was retry a second time and ant release just went through.
I solved this problem by waiting ~14 hours. Then the upload worked without changing anything in the apk. Hope this can help someone.
I ended up fixing this issue by fixing the time zone in my clock settings.
Changing the days in your system will not fix it.
This problem is your windows (or other OS) timezone.
Correct your time zone:
just wait a minute or two in most cases. The time is probably just slightly off.
I can't say the others are incorrect but they're mostly describing the same thing. The time stamp used when signing your APK was not "correct" for whichever Google uses to validate. Therefore you create signed packages in the past or future from Googles perspective, most likely future as the message indicates future tense "is not valid yet"
It's impossible to give a fixed amount of time by which we all must update our clocks by so what worked best for me was to just wait until it works.
Just adjusting the app's availability from 25 years to 24 will solve the problem

Error while publishing in Android market

I am an Android developer. In part of my job I have to upload a new version of our application daily.
The problem is for nearly three to four weeks I get following error at every time when I try to upload in market.
The server could not process your apk. Try again.
After retrying for nearly 20 times the application is uploading. Can any one pls explain what's happening and whether the problem is mine or in android market.... Pls provide me a solution.
Thanks in advance.
Regards,
Sniper
Off topic: Am I the only one who is thinking that uploading a new version each day is an overkill? Are you adding new features each day?
Back on topic: There was a general problem in the market last week.
Have you changed your signing certificate?
I think the probelm was occured due to lots of different applications trying to upload in same time. Try upoading in different time.
If you are following the application upload guidelines properly i.e. managing proper VersionCode and VersionName and app signing with same keystore, than the problem could be at Android Market side.
I have also faced the problem while uploading my app on market i.e. my application is uploaded(update) to the market but the update was not visible till 5 to 7 hours.
Assuming you don't have to change anything in the apk and just hit refresh ~20 times until it works, then this implies the issue is on the server.
If you are trying to send the exact same file twice and it only works once, then the problem is almost guaranteed to be on the server.
BUT
if you change anything about the apk, it could be an issue on your side. If the file name is changed or the version code is changed, then that would most likely be the issue. Even if the apk is rebuilt between a failed upload and a successful upload, then there are other factors involved and it might not be the server.
Did you check for any empty tags in AndroidManifest.xml ? Its worth to check.

Getting an error when uploading the apk to the market

" An unexpected error occurred. Please try again later. " is the error that I am getting when
I try uploading my signed apk..
Once I was done with my app, I used Export signed application tool to generate the key.
Why am I getting this error?
I found that just SIGNING OUT and back int fixed the issue for me. Using Firefox.
Try to use a different browser, or just wait.
This can help: http://www.google.com/support/forum/p/Android+Market/thread?tid=7fff4999197c33c7&hl=en
Just log out . Log in again. And yep now it works :) . If not still working clear history and then try again logging in it will surely do. However google should look on to this issue
I just experienced the same problem using FireFox, so I just switch to IE and it worked fine ...
I logged out and then logged in again. The new version is listed but a couple more steps involved. Deactivate the currently published version and click the "Publish Now" button.
They need to fix this. It is not intuitive by any stretch of the imagination.
I just had this issue, and solved it by:
Saving the apk as draft (instead of publishing it).
Deactivating the currently published version.
Publishing the draft apk.
Signing out and back in again didn't help.
Changing the browser (IE/Opera) and re login didn;t work. So I logged out, remove all signed in gmail accounts from the browser(Chrome) and then logged in. It worked.
I just spent hours trying to upload and publish a new version of my app using Firefox on the Google Developer site. Eventually I too found that just signing out and back in solved the problem.

Categories

Resources