On phones using Android 5, this error when downloading apps from the market has been fixed with the Android 5.0.1 update.
This error named “INSTALL_FAILED_DUPLICATE_PERMISSION” occurs when requesting the same permission from more than one device. For example, you can experience downloading the same application from the same developer at the same time.
If you still have to use Android 5, maybe if you try the process below, you can get rid of this situation.,
If your phone gives the Error 505 code when downloading apps from Google Play, first put the device in guest mode and then switch back to your own account.
When you try to download the application again, you have a chance to download it without error.