My newly released app can't be installed: Error code: -504

梦想与她 提交于 2019-11-29 06:11:35

I got it working!

Build tools version 23.0.2 is broken for multi-dexed apps.

Changing to buildToolsVersion "23.0.1" produces working, installable builds in both devDebug and prodRelease.

(As my post mentions, the former does not run proguard, the latter does, and both flavors target a minSdkVersion of 17).

This consumed two entire days. I hope this saves someone else's time, at least til 23.0.3 comes out!

If you update targetSdkVersion to 23 (in line with your compileSdkVersion and buildToolsVersion), you issue will go away.

You can get a Error code: -504 in the Play Store for downgrading your targetSdkversion from 23 to 22, too. Installation will fail because of a permission model downgrade. The Play Store dev console will not notify you of this, but your users' installation will fail.

Vivek K N

Error code 504 is related to gateway timeout. The problem is between should your device and Google Play. Check this http://www.androidfornook.com/forum/thread-897.html.

Also you could consider checking this for a solution https://android.stackexchange.com/questions/35062/error-504-when-downloading-apps-from-play-store

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!