I am developing an Android App. I was able test it on my device successfully. So I pushed the released version on Google Play store. Now I uninstalled the debug build from my device and tried to download it from the Play Store. But when I click on install button, I am getting this error.
you cannot install this app because another user has already installed an incompatible version on this device...
I am only using Google Play services. Not using any storage or anything that might be different for different users and Android L. What changes should I make in my app source to resolve this?
Edit
AndroidManifest
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.unary.untangleit"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="21" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/AppTheme">
<activity
android:name=".GameActivity"
android:label="@string/app_name"
android:screenOrientation="portrait" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<meta-data
android:name="com.google.android.gms.games.APP_ID"
android:value="@string/app_id" />
<meta-data
android:name="com.google.android.gms.appstate.APP_ID"
android:value="@string/app_id" />
<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
</application>
Somehow adb shell pm uninstall com.packagename
did not work for me. I am not sure if this was because I was on a lollipop device.
The answer suggested in this link did the trick. Hope this helps someone else.
For Redmi or Mi Phones, the debug app was got installed on second space.
Go To Setting -> Second Space -> Open Second Space.
Settings -> App - > downloaded app list.
Or For Other Phones
I solved this issue by uninstalling debug version of the app and then clearing data of play store app.
If this still doesn't work, you can follow these steps given in this site.
Go to any root file manager, and navigate to directory: root >> data/data folder.
Find the relevant folder of that app which you were installing from play store.
Then delete that folder. [Note: Here you will loose all data related to that app].
Now go to play store, and try to install that app again.
Check you have fixed your error.
Hope this helps!
Update: Thanks Abhishek, you can also try uninstalling the app using adb:
adb shell pm uninstall com.packagename
I solved this problem in this way:
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