Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android 5.0 lollipop app install shows Unknown error code during application install: "-505"

While downloading an app, an error dialog with this text shows up: Unknown error code during application install: "-505"

like image 845
andude Avatar asked Oct 21 '14 16:10

andude


People also ask

How do I fix app not installing error?

The Android app not installed error can be combated after resetting app permissions. Go to Settings > Apps > Reset App Preferences/Reset Application Permissions. After this, third-party software can be installed on your device.

Why is unknown app not installing?

Unknown sources: As part of the Android Operative system, there is a restriction that blocks installing applications outside the Google Play Store. If you have a phone running Android Oreo or higher, you won't see a setting to allow installation of apps from unknown sources.

Why app is not installing from APK?

By default Android allows installation only from the Play Store. In order to allow installation of apps from other sources, open the Settings app and locate "Install Unknown Apps" under Privacy/Security settings. Enable the permission for the app which you use to install your APK.


2 Answers

I've found the issue with "INSTALL_FAILED_DUPLICATE_PERMISSION".

If you have Android 5.0 and multi user enabled, check if you have the app that is causing problems in your "Guest" account and uninstall it. Then go back to your main user and try installing the app again. It worked for me! Hope Google fix this with multiple accounts.

like image 164
Brigadier Avatar answered Oct 12 '22 23:10

Brigadier


Had this issue too. I was releasing Sandbox and Production apps with different package names, but same GCM permissions.

I started using ${packageName} in AndroidManifest.xml file.

I changed from

<!-- GCM specific permissions -->
<permission
    android:name="com.playgong.permission.C2D_MESSAGE"
    android:protectionLevel="signature"/>

<uses-permission android:name="com.playgong.permission.C2D_MESSAGE"/>

to

<!-- GCM specific permissions -->
<permission
    android:name="${packageName}.permission.C2D_MESSAGE"
    android:protectionLevel="signature"/>

<uses-permission android:name="${packageName}.permission.C2D_MESSAGE"/>

And in receiver's intent-filter from:

<category android:name="com.playgong"/>

to:

<category android:name="${packageName}"/>
like image 44
ViliusK Avatar answered Oct 12 '22 23:10

ViliusK