Assuming you donโt need to change anything in apk and just delete the update ~ 20 times until it works, then there is a problem on the server.
If you try to send the same file twice, and it works only once, the problem is almost guaranteed on the server.
BUT
If you change anything about apk, this may be a problem on your side. If the file name is changed or the version code is changed, then this is most likely to be a problem. Even if apk rebuilds between failed downloads and successful downloads, then there are other factors, and this may not be the server.
source share