Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android: Unable to download from play store

Tags:

android

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...

enter image description here

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>

like image 449
Abhishek Batra Avatar asked Feb 15 '15 04:02

Abhishek Batra


4 Answers

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.

like image 71
luckylukein Avatar answered Nov 13 '22 07:11

luckylukein


For Redmi or Mi Phones, the debug app was got installed on second space.

  1. Go To Setting -> Second Space -> Open Second Space.

  2. Settings -> App - > downloaded app list.

  3. Click on the application, You want to Uninstall.
  4. Click on Uninstall.
  5. Back to First space from setting.

Or For Other Phones

  1. Go to settings -> apps -> downloaded app list
  2. You can see the installed applications in the list
  3. Click on the Application
  4. Click on uninstall for all users options.
like image 30
Vipan Avatar answered Nov 13 '22 06:11

Vipan


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

like image 11
Bipin Bhandari Avatar answered Nov 13 '22 06:11

Bipin Bhandari


I solved this problem in this way:

  1. Go to Settings > Apps
  2. Find your app and open the App Info
  3. Open the overflow menu (3 vertical dots)
  4. Choose Uninstall for all users.

enter image description here

like image 5
Jorge Casariego Avatar answered Nov 13 '22 06:11

Jorge Casariego