While downloading an app, an error dialog with this text shows up: Unknown error code during application install: "-505"
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.
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.
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.
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.
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}"/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With