2

It seems that after updating my app to use compileSdkVersion 23 from 21, some users have started to complain that they are unable to install the app from the app store referencing error code 505.

I have looked at other people with install issues with error code 505 and a lot point to permission package name conflicts which arose with lollipop phones, but this would not explain why this problem only started to happen after updating my compileSdkVersion. I also looked through my manifest and the only permission using a package name other than "android.permission" were:

<uses-permission android:name="[my package].permission.C2D_MESSAGE" />
<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />

which both seem correct. Has anyone else seen this issue?

fractalwrench
  • 4,028
  • 7
  • 33
  • 49
Chriskot
  • 647
  • 4
  • 7
  • When you install the release version of the app yourself (e.g., `adb install`), what do you see? – CommonsWare Nov 22 '15 at 12:14
  • Thanks for the reply, I am not able to replicate the issue, so when I install locally it works. I am just going off of increased reports by users encountering the issue. – Chriskot Nov 23 '15 at 19:33
  • You might try to change uses-permission to permission and you also can grab some ideas from here: http://stackoverflow.com/questions/27043933/install-failed-duplicate-permission-c2d-message – bjiang Nov 30 '15 at 19:38
  • Hello Chriskot, same issue here... did you find a solution yet? – Peter Dec 05 '15 at 11:59
  • I haven't found a definitive solution yet. There are lots of things on https://code.google.com/p/android/issues about random install issues, but nothing that has helped me yet. I did find an issue on another app where if you are using a new version of google analytics and don't have "applicationId" specified in your manifest it can cause install issues. I'll keep you posted if I find any other solutions. – Chriskot Dec 15 '15 at 23:39
  • If you are using build tools 23.0.2 this could be your issue @Peter http://stackoverflow.com/questions/33781210/my-newly-released-app-cant-be-installed-error-code-504 – Chriskot Dec 15 '15 at 23:41

1 Answers1

0

I have found the answer for the 505 error. The cause was a missing applicationId variable in my build.gradle file:

android {
    defaultConfig {
        applicationId "xxx.xxxxxx.xxxx"
    }
}

Full story described here: https://code.google.com/p/android/issues/detail?id=189079

Peter
  • 10,910
  • 3
  • 35
  • 68