5,601,223 Members 55,072 Now Online
XDA Developers Android and Mobile Development Forum

[Guide][Help] Play Store error -24: What is it and how to solve it

Tip us?
 
Quinny899
Old
(Last edited by Quinny899; 3rd December 2012 at 06:06 PM.)
#1  
Quinny899's Avatar
Recognized Contributor - OP
Thanks Meter 3689
Posts: 6,162
Join Date: Jan 2011
Location: Bolton le Sands, Near Lancaster, UK

 
DONATE TO ME
Info 2 [Guide][Help] Play Store error -24: What is it and how to solve it

This is a common error that occurs with the Play Store sometimes after flashing ROMs without wiping data, or with an incomplete un-installation (apk corruption, etc.)

What is it?

Basically, there is some app data left behind from a previous installation of the app. The Play Store sees that data when trying to install the app and throws a -24 error, because it doesn't know what to do with it.

So, how do you solve it?

Simple to fix:
(I'm assuming you're rooted, chances are you are if you get this error)
- YOU'LL LOSE YOUR DATA FOR THAT APP (You would have done anyway, if it was uninstalled properly) -
1.) Using a root file manager, go to /data/data
2.) Find the package name of the app you're wanting to install
(Don't know the package name? Find the app you're wanting to install on the Play Store online and it's in the URL)
3.) Delete that folder. All of it.
4.) Try to install your app again, it should work now
5.) If you like, hit the thanks button

If you're unrooted, you can try this:
 

Run this in adb
Code:
adb shell rm -R -f /data/data/<packagename>
Replace <packagename> with the package name of your app (if you don't know it, see above)

If that doesn't work, a factory reset is your only option, sorry

 
Devices:
Nexus 5
Galaxy Nexus
Nexus 7 FHD
Archos 80 G9
LG GT540
The Following 124 Users Say Thank You to Quinny899 For This Useful Post: [ Click to Expand ]
 
prboy1969
Old
#2  
prboy1969's Avatar
Recognized Contributor
Thanks Meter 6207
Posts: 9,809
Join Date: May 2009
Location: Michigan
Great write up man .

TEAM MiK
MikROMs Since 3/13/11
The Following User Says Thank You to prboy1969 For This Useful Post: [ Click to Expand ]
 
t0ny0
Old
#3  
t0ny0's Avatar
Senior Member
Thanks Meter 341
Posts: 952
Join Date: Jul 2008
Location: Atlanta, GA
you just saved me Thanks a bunch!


Current Devices:
Samsung Galaxy S4 - Google Play Edition

Old Devices:
Galaxy Nexus - Retired
HTC Sensation 4G - Sold
MyTouch 4G - Sold
HTC HD2 - Sold
T-Mobile G2 - Sold
Nexus One - Sold
Viewsonic G-Tablet - Sold
HTC G1 - Eaten by my dog..
Samsung Vibrant - Sold
Samsung Nexus S - Sold
LG G2x - Sold (Warning! Crappy "phone")

If you think that I, or anyone else helped you, dont hesitate to hit the "THANKS" button. Thats why its there for .
The Following User Says Thank You to t0ny0 For This Useful Post: [ Click to Expand ]
 
SynnyG
Old
#4  
SynnyG's Avatar
Senior Member
Thanks Meter 97
Posts: 450
Join Date: Jan 2013
Location: Strasbourg

 
DONATE TO ME
F*ck, you're a genius man, many thanks to you !
 
nimrodity
Old
#5  
nimrodity's Avatar
Senior Member
Thanks Meter 1157
Posts: 4,320
Join Date: Sep 2008

 
DONATE TO ME
Thx so much, you really saved me with your guide!!!

I love to beta test all sorts of stuff
Please check my Android Blog TheDroidEffect
and my custom ROM comparison database
 
n1nj4Lo
Old
#6  
n1nj4Lo's Avatar
Senior Member
Thanks Meter 162
Posts: 1,348
Join Date: Aug 2008
Location: Atlanta
I did all that but am still getting the same error with Beautiful Widgets, I just upgraded from 4.1.2 to 4.2.2, any other advice...
My owned smartphone list order:
HTC Mogul
Samsung i760
HTC TP2
LG Fathom
HTC HD2
(Went to the darkside.... Still waiting for my cookies!!)
Dell Streak (Mini) 5
Samsung Galaxy Note 2 (Finally got my cookies | i317 on T-Mobile)
_

Using HTC HD2 [Windows Mobile 6.5 Stock, Ubuntu and MccMBoXMaX SD] - Dell Streak (Mini) 5 [LXdroid 0.2] - Samsung i317 [Sky Note Air G2 N3 4.3]
 
St.Valkyrie
Old
#7  
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Apr 2012
My device (Galaxy S4) is unrooted and i never root or install any custom rom on this device so i use the adb shell and enter the above command,
i get rm failed for /data/data/com.miui.mihome2, Permission denied
Any other suggestion or advice??Is factory reset the only option??
 
SahilC
Old
#8  
SahilC's Avatar
Senior Member
Thanks Meter 879
Posts: 1,995
Join Date: Jun 2012
Location: Mumbai
Hey guys, I did this, but it still isn't working. Any help?

Nexus Prime, powered by CyanogenMod and LeanKernel.
 
wholocked10
Old
#9  
Junior Member
Thanks Meter 0
Posts: 8
Join Date: Feb 2013
It keeps saying that no such file or directory exists.... I have my phone plugged in, debugging is on, and I open ADB in command prompt...
 
jazz5008
Old
#10  
jazz5008's Avatar
Junior Member
Thanks Meter 1
Posts: 27
Join Date: Feb 2012
Location: Chandigarh
Thanks

Tags
-24, error, play, solution, store
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes