I am installing the released version of my Xamarin.Android app on the Lollipop device. For this, I have performed the following steps:
Changed the mode to Release mode.
Provided the required permissions and changes in the Android manifest, used android:sharedUserId="android.uid.system"
I generated the keystore file for Android 5.1(Lollipop) with the platform keys platform.pk8 and platform.x509.pem files(downloaded from the Android Google Git repository) using :
./keytool-importkeypair -k /Android5.keystore -p android -pk8 platform.pk8 -cert platform.x509.pem -alias platform
This generated the .keystore file.
- After this, I provided this keystore file for signing my application project and build the project.
Now when I am installing the apk signed on an Android 5.1 emulator, the application is installed and is running perfectly. But when I am trying to install the same apk on the Android 5.1 mobile device, it showing app not installed.
And the error which I pulled from logs is INSTALL_FAILED_SHARED_USER_INCOMPATIBLE error.