Play Store crashes, Resources$NotFoundException - HTC U11 Questions & Answers

So Play Store is updating my apps just fine in the background, and for the most part I can use it... but it will randomly barf on me with a message that "Play Store has stopped, press here to relaunch".
I eventually went in to the Developer Tools and sent myself a bug report and found a number of system_app_crash events like these (this is just the latest one, there are six with "play_action_button_text.xml" referenced and two with "play_apps_primary_stateful.xml" referenced, fwiw.)
Code:
========================================
2018-01-26 14:01:24 system_app_crash (text, 2212 bytes)
Process: com.android.vending
PID: 30563
Flags: 0x38cabec5
Package: com.android.vending v80871000 (8.7.10-all [0] [PR] 181799446)
Foreground: Yes
Build: htc/ocnwhl_00617/htc_ocnwhl:8.0.0/OPR6.170623.013/1011554.1:user/release-keys
android.content.res.Resources$NotFoundException: File res/color/play_action_button_text.xml from ComplexColor resource ID #0x7f0d0240
at android.content.res.ResourcesImpl.loadComplexColorForCookie(ResourcesImpl.java:1039)
at android.content.res.ResourcesImpl.loadComplexColorFromName(ResourcesImpl.java:868)
at android.content.res.ResourcesImpl.loadColorStateList(ResourcesImpl.java:947)
at android.content.res.Resources.getColor(Resources.java:989)
at android.content.res.CompatResources.getColor(CompatResources.java:57)
at com.google.android.finsky.frameworkviews.PlayActionButtonV2.b(SourceFile:87)
at com.google.android.finsky.frameworkviews.PlayActionButtonV2.setActionStyle(SourceFile:31)
at com.google.android.finsky.actionbuttons.q.a(SourceFile:106)
at com.google.android.finsky.actionbuttons.c.e(SourceFile:364)
at com.google.android.finsky.actionbuttons.c.b(SourceFile:146)
at com.google.android.finsky.activities.bd.a(SourceFile:790)
at com.google.android.finsky.activities.ay.a(SourceFile:31)
at com.google.android.finsky.detailspage.gu.b(SourceFile:132)
at com.google.android.finsky.detailsmodules.b.run(SourceFile:10)
at android.os.Handler.handleCallback(Handler.java:789)
at android.os.Handler.dispatchMessage(Handler.java:98)
at android.os.Looper.loop(Looper.java:180)
at android.app.ActivityThread.main(ActivityThread.java:6950)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:835)
Caused by: java.lang.UnsupportedOperationException: Can't convert value at index 0 to color: type=0x5
at android.content.res.TypedArray.getColor(TypedArray.java:473)
at android.content.res.ColorStateList.inflate(ColorStateList.java:327)
at android.content.res.ColorStateList.createFromXmlInner(ColorStateList.java:275)
at android.content.res.ResourcesImpl.loadComplexColorForCookie(ResourcesImpl.java:1034)
... 20 more
The XML files in question are files inside com.android.vending (the Play Store APK). What on earth does this mean? Is my storage hooped?
FWIW I'm running the latest version of Android 8.0 for the U11 (December security update) that just came out today, but it was doing this on the November security update as well.
It was doing this with version 8.5 of the Play Store was well as the latest version 8.7.10 from the quoted text above as well.

uncheck & disable PlayStore and PlayService app in boost+ battery optimizion....your problem fixed
boost+ change resulation lower of app in battery optimizion mode and new version of play store have problem with this mode
if problem in downloads disable : Download and downloadmanager app in boost+

That looks like it did it. Thanks a lot, it was driving me crazy. I totally forgot about Boost+ because I never touch it and I generally don't like "battery optimizer" apps (all my other phones have been Nexus devices and I've never installed an "optimizer" on them).
If anything else starts crashing in the future I'll have to give Boost a look right away.

Related

[Q] Play Store crashing with OutOfMemory exception

Device: ASUS ME301T (Smart Pad 10)
Android: Stock 4.2.1 (ASUS 10.6.1.29)
Rooted, SuperSU
Store version: 4.3.11 (happened on earlier versions, too)
2 tablet users
The issue is with the primary user. Secondary user seems to be unaffected.
When there are 43 apps installed, the Play Store works fine. When a 44th is installed (doesn't seem to matter what that 44th app is), the Store starts crashing with a OOM error on heap alloc while loading the list of installed apps. I've tried increasing the heap size a bit to no avail. I even bumped it to 256mb out of curiosity.. but the app happily sat there eating the full 256mb and then crashing. It also doesn't happen if any app has been recently updated, so it seem to be part of the list builder specifically. It currently has 46 apps installed, 43 'Up to date' and 3 'Recently updated'. If another is installed to bring the 'Up to date' count to 44, it crashes.
I've tried: Clearing the data/cache (of the Store, DMClient, and Download Manager), uninstalling updates, force close, removing Google account, and rebooting, nothing helped at all. I'd rather avoid a factory reset if possible.
Any ideas?

Unfortunately, Google Play Store has stopped appears every time.

I repaired Google play for some reason, then I got this, After uninstalling the update, the message will appear every time.
Did I need for update? com.android.vending
com.android.vending I updated it and it works already.
you shouldn't edit an app's native package/library. Because it results in errors...

[6.0.x][FIX] Google Play Services battery drain / Optimization

I was having heavy battery drain from Google Play Services so I searched around and found nothing that would solve my problem. But then I saw the light in the end of the tunnel and it wasn't a train.
The problem was that the Google Play Services couldn't be optimized, generating massive wake locks. So all I had to do is allow it to be optimized editing a single file.
What you'll need: a root file manager (I use Root Browser)
Go to /system/etc/sysconfig, find the file google.xml and edit it
Find the following lines:
Code:
<!-- GmsCore must always have network access for GCM and other things. -->
<allow-in-power-save package="com.google.android.gms" />
Comment the second line so both will look like this:
Code:
<!-- GmsCore must always have network access for GCM and other things. -->
<!-- <allow-in-power-save package="com.google.android.gms" /> -->
Reboot your phone and see if Google Play Services can be optimized now (or is already optimized) in Settings>Battery>3 dot menu>Battery Optimization.
You can confirm after some use that under the Google Play Services battery details the Keep Awake and the Computed Power Use will be much less than before.
It worked on my I9505 running latest JDCTeam's AOSP 6.0.1 with OpenGapps AROMA package.
Didn't had any crashes, delayed WhatsApp messages or any other issue 'til now (almost 2 days).
Thanks for pointing us this tweak.
My 2 cents : after reading some articles, I would underline also this method could lead to drawback on apps based upon GCM. Better to know it before
Optimizing Play services may cause unforeseen consequences (including Android Device Manager or device tracking apps not functioning appropriately). You are advised to calculate the number of installed apps which depends upon Google Cloud Messaging and would be affected by this move.
Click to expand...
Click to collapse
More reading here
Manfrowar said:
I was having heavy battery drain from Google Play Services so I searched around and found nothing that would solve my problem. But then I saw the light in the end of the tunnel and it wasn't a train.
The problem was that the Google Play Services couldn't be optimized, generating massive wake locks. So all I had to do is allow it to be optimized editing a single file.
What you'll need: a root file manager (I use Root Browser)
Go to /system/etc/sysconfig, find the file google.xml and edit it
Find the following lines:
Comment the second line so both will look like this:
Reboot your phone and see if Google Play Services can be optimized now (or is already optimized) in Settings>Battery>3 dot menu>Battery Optimization.
You can confirm after some use that under the Google Play Services battery details the Keep Awake and the Computed Power Use will be much less than before.
It worked on my I9505 running latest JDCTeam's AOSP 6.0.1 with OpenGapps AROMA package.
Didn't had any crashes, delayed WhatsApp messages or any other issue 'til now (almost 2 days).
Click to expand...
Click to collapse
Can you confirm if this works on Nougat? I tried this teak on RR 7.1.1 to no avail. I even deleted the GMS line but after a reboot, GMS is still whitelisted on doze. Thanks.
Google Play Services Optimization
Google Play Services Optimization /system/etc/sysconfig /google.xml and edit it
<!-- GmsCore must always have network access for GCM and other things. -->
<!-- <allow-in-power-save package="com.google.android.gms" /> -->
<allow-in-data-usage-save<!-- package="com.google.android.gms" />
Reboot phone and see if G.P.Services can be optimized now (or is already optimized) Settings>Battery>3 dot menu>Battery Optimization.

Google maps opens and stops immediatly

Hi,
In fact, I am using a i9195 (S4 mini serranoltexx) smartphone with ROM cm-11-20160212-UNOFFICIAL, last unofficial version of CM11, available on this forum. I am also using Open Gapps (pico package 4.4 for ARM).
The issue concerns Google maps : each time I launch the application, after few seconds, i get a message "Maps application has stopped" (not sure of the thanslation, since my phone is in french). I installed aLogCat application to look at the logs, that shows a final error :
"08-29 01:35:14.185 5626 5656 E AndroidRuntime: java.lang.VerifyError: tname=DefaultPool4 - Verifier rejected class alul due to bad method atsu alul.a(android.content.Context, audy) (declaration of 'alul' appears in /data/data/com.google.android.apps.maps/code_cache/secondary-dexes/com.google.android.apps.maps-1.apk.classes2.zip)"
What does it mean ? What is the issue (Google maps is up to date, and so the google applications). Be ingulgent, this is my first message... Aparently, google maps is the only application that crashes.
A detailed log is available here , with a crash generated at 01:35.
Apparently, changing back the runtine environnement to Dalvik (instead of ART) seem to be the solution...

How To Guide [Alternative Solution] App won't run without google play services [CN ROM]

With the latest app updates, some G-app (like Duo, Keep, …etc) got this message “App won't run without google play services, which are missing from your devices … INSTALL”, even though "Google Play Services" is installed with the latest version. Sometimes games are stuck at the loading screen like “ActionTaima..” because the game can't access Google Services correctly. The workaround solution was to find & revert back to the proper/previous version & Uninstall/re-install them, whenever G-store updates them automatically. It's kinda annoying
After research, trailer & error, I found that updating “Google Services Framework”, does solve this issue. I presume, latest G-app deals with “Android 11+”, therefore, Google Services Framework must be updated in order to match with it.
1) Download Google Services Framework 11-6684105
2) Install & enable Autostart & Reboot your system.
I'm glad to hear any other methods or solutions
I'm not sure if this will help, I recall getting the same problem on my emulators some time back, and was able to resolve it by downloading Google Play Games, and in doing so, that forced the Play Services to update. Maybe it will help?
Google Play Games - Apps on Google Play
Play games instantly, save progress, and earn achievements.
play.google.com
APK Downloader [Latest] Download Directly | June 2023 | (Evozi Official)
Download APKs Directly From Google Play To Your Computer With APK Downloader Extension For Google Chrome
apps.evozi.com
incase you can't dl...
jenneh said:
I'm not sure if this will help, I recall getting the same problem on my emulators some time back, and was able to resolve it by downloading Google Play Games, and in doing so, that forced the Play Services to update. Maybe it will help?
Google Play Games - Apps on Google Play
Play games instantly, save progress, and earn achievements.
play.google.com
APK Downloader [Latest] Download Directly | June 2023 | (Evozi Official)
Download APKs Directly From Google Play To Your Computer With APK Downloader Extension For Google Chrome
apps.evozi.com
incase you can't dl...
Click to expand...
Click to collapse
Would you mind sharing the emulator name that you struggle with before?
As for me (BS4Pro CN ROM), I never installed/used "Google Play Games.apk" at all. I just played them direclty as well as all known emulator are working perfectly including the new one AetherSX2 (The Beast).
ksbwings said:
Would you mind sharing the emulator name that you struggle with before?
As for me (BS4Pro CN ROM), I never installed/used "Google Play Games.apk" at all. I just played them direclty as well as all known emulator are working perfectly including the new one AetherSX2 (The Beast).
Click to expand...
Click to collapse
It was on previous generations of Nox and Windroye for me.
jenneh said:
It was on previous generations of Nox and Windroye for me.
Click to expand...
Click to collapse
For android emulator on PC, I believe it should be just fine. If got any issues , just enabling root feature, & try to manipulation with system on emulator or add 3rd party app to modify. FYI, I was using MEmu on PC.
ksbwings said:
With the latest app updates, some G-app (like Duo, Keep, …etc) got this message “App won't run without google play services, which are missing from your devices … INSTALL”, even though "Google Play Services" is installed with the latest version. Sometimes games are stuck at the loading screen like “ActionTaima..” because the game can't access Google Services correctly. The workaround solution was to find & revert back to the proper/previous version & Uninstall/re-install them, whenever G-store updates them automatically. It's kinda annoying
After research, trailer & error, I found that updating “Google Services Framework”, does solve this issue. I presume, latest G-app deals with “Android 11+”, therefore, Google Services Framework must be updated in order to match with it.
1) Download Google Services Framework 11-6684105
2) Install & enable Autostart & Reboot your system.
I'm glad to hear any other methods or solutions
Click to expand...
Click to collapse
Thank you! My issue solved.
Im still having issues with google play services updating/ cant locate my location for some delivery apps... Hoping someone have a solution on this. Im using bs4s
Erushun said:
Im still having issues with google play services updating/ cant locate my location for some delivery apps... Hoping someone have a solution on this. Im using bs4s
Click to expand...
Click to collapse
As far as I know, google play services is updatable and google MAP can be used normally.
However, accessing location/map with 3rd app party (such as WhatsApp ...etc ) has multiple scenarios;;
- View "received map" from other == Perfectly Working !!
- Locate your current location == Working ( but a black screen, just point GPS and send ) !!
- Navigate the map to select different location == Not working (Just black screen)
I suggest you open a new thread, so people can hopefully share & react to the issue.
my google services is updated to latest version. still encountering the play services error. google keep and google pay keeps looking for google play services. even mcdonalds app is looking for it.

Categories

Resources