Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error in play store Pre-launch report: java.lang.RuntimeException: Unable to start activity ComponentInfo #41716

Closed
hotaryuzaki opened this issue Nov 30, 2023 · 20 comments
Labels
Newer Patch Available Resolution: Answered When the issue is resolved with a simple answer

Comments

@hotaryuzaki
Copy link

Description

in Pre-launch report we got an error, this is the report detail for the device

Model name: Redfin 64-bit only
Android version: Android 14 (SDK 34)
ABI: arm64-v8a

since the Android version is Android 14 (SDK 34), there is a possibility this issue will arise in the future.
it is related to the Location from the device, maybe permission issue or something else.
this is the error log:

Exception java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.gms/com.google.android.location.settings.LocationSettingsCheckerActivity}: android.view.InflateException: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Error inflating class android.widget.ScrollView
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3781)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3921)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:103)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:139)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:96)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2442)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:205)
  at android.os.Looper.loop (Looper.java:294)
  at android.app.ActivityThread.main (ActivityThread.java:8170)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:552)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:971)
Caused by android.view.InflateException: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Error inflating class android.widget.ScrollView
Caused by: android.view.InflateException: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Error inflating class android.widget.ScrollView
Caused by: java.lang.reflect.InvocationTargetException
  at java.lang.reflect.Constructor.newInstance0
  at java.lang.reflect.Constructor.newInstance (Constructor.java:343)
  at android.view.LayoutInflater.createView (LayoutInflater.java:866)
  at android.view.LayoutInflater.createView (LayoutInflater.java:788)
  at com.android.internal.policy.PhoneLayoutInflater.onCreateView (PhoneLayoutInflater.java:58)
  at android.view.LayoutInflater.onCreateView (LayoutInflater.java:942)
  at android.view.LayoutInflater.onCreateView (LayoutInflater.java:962)
  at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:1016)
  at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:973)
  at android.view.LayoutInflater.inflate (LayoutInflater.java:667)
  at android.view.LayoutInflater.inflate (LayoutInflater.java:538)
  at android.view.LayoutInflater.inflate (LayoutInflater.java:485)
  at dqvd.run (:com.google.android.gms@[email protected] (190400-580326705):221)
  at android.app.Activity.runOnUiThread (Activity.java:7620)
  at nvq.platform_runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):1)
  at nvp.runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):3)
  at com.google.android.chimera.android.Activity.runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):1)
  at com.google.android.location.settings.LocationSettingsCheckerChimeraActivity.onCreate (:com.google.android.gms@[email protected] (190400-580326705):171)
  at nvp.public_onCreate (:com.google.android.gms@[email protected] (190400-580326705):1)
  at agek.onCreate (:com.google.android.gms@[email protected] (190400-580326705):4)
  at android.app.Activity.performCreate (Activity.java:8595)
  at android.app.Activity.performCreate (Activity.java:8573)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1456)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3763)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3921)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:103)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:139)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:96)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2442)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:205)
  at android.os.Looper.loop (Looper.java:294)
  at android.app.ActivityThread.main (ActivityThread.java:8170)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:552)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:971)
Caused by android.content.res.Resources$NotFoundException: Drawable android:drawable/scrollbar_handle_material with resource ID #0x10807df
Caused by: android.content.res.Resources$NotFoundException: File res/color-v31/gm3_dynamic_default_color_secondary_text.xml from ComplexColor resource ID #0x7f0603ad
  at android.content.res.ResourcesImpl.loadComplexColorForCookie (ResourcesImpl.java:1191)
  at android.content.res.ResourcesImpl.loadComplexColorFromName (ResourcesImpl.java:1017)
  at android.content.res.ResourcesImpl.loadColorStateList (ResourcesImpl.java:1096)
  at android.content.res.Resources.loadColorStateList (Resources.java:1150)
  at android.content.res.TypedArray.getColorStateList (TypedArray.java:604)
  at android.graphics.drawable.GradientDrawable.updateStateFromTypedArray (GradientDrawable.java:1513)
  at android.graphics.drawable.GradientDrawable.applyTheme (GradientDrawable.java:1443)
  at android.content.res.ResourcesImpl.loadDrawable (ResourcesImpl.java:695)
  at android.content.res.Resources.loadDrawable (Resources.java:1004)
  at android.content.res.TypedArray.getDrawableForDensity (TypedArray.java:1017)
  at android.content.res.TypedArray.getDrawable (TypedArray.java:991)
  at android.view.View.initializeScrollbarsInternal (View.java:6956)
  at android.view.View.<init> (View.java:6317)
  at android.view.ViewGroup.<init> (ViewGroup.java:704)
  at android.widget.FrameLayout.<init> (FrameLayout.java:99)
  at android.widget.ScrollView.<init> (ScrollView.java:228)
  at android.widget.ScrollView.<init> (ScrollView.java:224)
  at android.widget.ScrollView.<init> (ScrollView.java:220)
  at java.lang.reflect.Constructor.newInstance0
  at java.lang.reflect.Constructor.newInstance (Constructor.java:343)
  at android.view.LayoutInflater.createView (LayoutInflater.java:866)
  at android.view.LayoutInflater.createView (LayoutInflater.java:788)
  at com.android.internal.policy.PhoneLayoutInflater.onCreateView (PhoneLayoutInflater.java:58)
  at android.view.LayoutInflater.onCreateView (LayoutInflater.java:942)
  at android.view.LayoutInflater.onCreateView (LayoutInflater.java:962)
  at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:1016)
  at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:973)
  at android.view.LayoutInflater.inflate (LayoutInflater.java:667)
  at android.view.LayoutInflater.inflate (LayoutInflater.java:538)
  at android.view.LayoutInflater.inflate (LayoutInflater.java:485)
  at dqvd.run (:com.google.android.gms@[email protected] (190400-580326705):221)
  at android.app.Activity.runOnUiThread (Activity.java:7620)
  at nvq.platform_runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):1)
  at nvp.runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):3)
  at com.google.android.chimera.android.Activity.runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):1)
  at com.google.android.location.settings.LocationSettingsCheckerChimeraActivity.onCreate (:com.google.android.gms@[email protected] (190400-580326705):171)
  at nvp.public_onCreate (:com.google.android.gms@[email protected] (190400-580326705):1)
  at agek.onCreate (:com.google.android.gms@[email protected] (190400-580326705):4)
  at android.app.Activity.performCreate (Activity.java:8595)
  at android.app.Activity.performCreate (Activity.java:8573)
  at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1456)
  at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3763)
  at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3921)
  at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:103)
  at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:139)
  at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:96)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2442)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:205)
  at android.os.Looper.loop (Looper.java:294)
  at android.app.ActivityThread.main (ActivityThread.java:8170)
  at java.lang.reflect.Method.invoke
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:552)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:971)
Caused by java.lang.UnsupportedOperationException: Can't convert value at index 0 to color: type=0x1, theme={InheritanceMap=[id=0x7f160a6ecom.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.Light], Themes=[com.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.Light, forced, com.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.DayNight, forced, com.google.android.gms:style/AlertThemeSelector, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]}
  at android.content.res.TypedArray.getColor (TypedArray.java:535)
  at android.content.res.ColorStateList.inflate (ColorStateList.java:366)
  at android.content.res.ColorStateList.createFromXmlInner (ColorStateList.java:296)
  at android.content.res.ResourcesImpl.loadComplexColorForCookie (ResourcesImpl.java:1184)

i post this so the community aware the possibility of this issue, but i don't know what the issue category is.

React Native Version

0.71.4

Output of npx react-native info

System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
Memory: 4.99 GB / 15.50 GB
Shell: 5.0.17 - /bin/bash
Binaries:
Node: 18.9.0 - ~/.nvm/versions/node/v18.9.0/bin/node
Yarn: 3.6.4 - ~/.nvm/versions/node/v18.9.0/bin/yarn
npm: 8.19.1 - ~/.nvm/versions/node/v18.9.0/bin/npm
Watchman: 20220123.190932.0 - /usr/local/bin/watchman
SDKs:
Android SDK: Not Found
IDEs:
Android Studio: Not Found
Languages:
Java: 11.0.21 - /usr/bin/javac
npmPackages:
@react-native-community/cli: Not Found
react: 18.2.0 => 18.2.0
react-native: 0.71.4 => 0.71.4
npmGlobalPackages:
react-native: Not Found

Steps to reproduce

  • build production app
  • upload into play store
  • check the result of Pre-launch report

Snack, screenshot, or link to a repository

image

Copy link

⚠️ Newer Version of React Native is Available!
ℹ️ You are on a supported minor version, but it looks like there's a newer patch available - 0.71.14. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@github-actions github-actions bot added Newer Patch Available Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Nov 30, 2023
Copy link

⚠️ Missing Reproducible Example
ℹ️ We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.

@cortinico
Copy link
Contributor

Caused by java.lang.UnsupportedOperationException: Can't convert value at index 0 to color: type=0x1, theme={InheritanceMap=[id=0x7f160a6ecom.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.Light], Themes=[com.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.Light, forced, com.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.DayNight, forced, com.google.android.gms:style/AlertThemeSelector, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]}

That's the root of your problem.
This is unrelated to React Native.

@cortinico cortinico added Resolution: Answered When the issue is resolved with a simple answer and removed Needs: Triage 🔍 Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Nov 30, 2023
@hotaryuzaki
Copy link
Author

hotaryuzaki commented Nov 30, 2023

Caused by java.lang.UnsupportedOperationException: Can't convert value at index 0 to color: type=0x1, theme={InheritanceMap=[id=0x7f160a6ecom.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.Light], Themes=[com.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.Light, forced, com.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.DayNight, forced, com.google.android.gms:style/AlertThemeSelector, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]}

That's the root of your problem. This is unrelated to React Native.

if i check this, it leads to splash screen (we are using expo-splash-screen).
or maybe some setup in android binary related to style
thanks for the information.

@cortinico
Copy link
Contributor

if i check this, it leads to splash screen (we are using expo-splash-screen).

Please report this issue against Expo then:

https://github.com/expo/expo/issues

@drakulic-goran
Copy link

Same problem here...

@asharghi
Copy link

asharghi commented Dec 1, 2023

Same here using NativeScript, so it's not rn specific. Anyone have a solution?

java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.gms/com.google.android.location.settings.LocationSettingsCheckerActivity}: android.view.InflateException: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Error inflating class android.widget.ScrollView

@ottor-o
Copy link

ottor-o commented Dec 2, 2023

I'm experiencing this issue too. It apparently happens when requesting location permissions with PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION) but only on Google Play console automatic tests. I haven't been able to replicate it on an emulator.

@DorBSoft
Copy link

DorBSoft commented Dec 3, 2023

I have exactly the same issue reported on same device, on my own app which is not using react-native. Looks to me like Google bug.

@hotaryuzaki
Copy link
Author

I have exactly the same issue reported on same device, on my own app which is not using react-native. Looks to me like Google bug.

Yes maybe Google just wants to test Android 14 development with each application on the market.

@JamDeezCodes
Copy link

I'm also seeing this problem, just like @ottor-o, I can't recreate it in an emulator. Only shows up in Play console report details.

@DorBSoft
Copy link

DorBSoft commented Dec 3, 2023

I'm experiencing this issue too. It apparently happens when requesting location permissions with PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION) but only on Google Play console automatic tests. I haven't been able to replicate it on an emulator.

This is most probably coming from the Android feature of showing UI for device location settings when needed, not app location permission.

@jdevo2004
Copy link

jdevo2004 commented Dec 4, 2023

I am having the same problem. I am also using uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/ Does anyone have a fix?

Exception java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.android.gms/com.google.android.location.settings.LocationSettingsCheckerActivity}: android.view.InflateException: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Error inflating class android.widget.ScrollView
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3781)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3921)
at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:139)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2442)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:205)
at android.os.Looper.loop (Looper.java:294)
at android.app.ActivityThread.main (ActivityThread.java:8170)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:971)
Caused by android.view.InflateException: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Error inflating class android.widget.ScrollView
Caused by: android.view.InflateException: Binary XML file line #3 in com.google.android.gms:layout/location_settings_dialog: Error inflating class android.widget.ScrollView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0
at java.lang.reflect.Constructor.newInstance (Constructor.java:343)
at android.view.LayoutInflater.createView (LayoutInflater.java:866)
at android.view.LayoutInflater.createView (LayoutInflater.java:788)
at com.android.internal.policy.PhoneLayoutInflater.onCreateView (PhoneLayoutInflater.java:58)
at android.view.LayoutInflater.onCreateView (LayoutInflater.java:942)
at android.view.LayoutInflater.onCreateView (LayoutInflater.java:962)
at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:1016)
at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:973)
at android.view.LayoutInflater.inflate (LayoutInflater.java:667)
at android.view.LayoutInflater.inflate (LayoutInflater.java:538)
at android.view.LayoutInflater.inflate (LayoutInflater.java:485)
at dqvd.run (:com.google.android.gms@[email protected] (190400-580326705):221)
at android.app.Activity.runOnUiThread (Activity.java:7620)
at nvq.platform_runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):1)
at nvp.runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):3)
at com.google.android.chimera.android.Activity.runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):1)
at com.google.android.location.settings.LocationSettingsCheckerChimeraActivity.onCreate (:com.google.android.gms@[email protected] (190400-580326705):171)
at nvp.public_onCreate (:com.google.android.gms@[email protected] (190400-580326705):1)
at agek.onCreate (:com.google.android.gms@[email protected] (190400-580326705):4)
at android.app.Activity.performCreate (Activity.java:8595)
at android.app.Activity.performCreate (Activity.java:8573)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1456)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3763)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3921)
at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:139)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2442)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:205)
at android.os.Looper.loop (Looper.java:294)
at android.app.ActivityThread.main (ActivityThread.java:8170)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:971)
Caused by android.content.res.Resources$NotFoundException: Drawable android:drawable/scrollbar_handle_material with resource ID #0x10807df
Caused by: android.content.res.Resources$NotFoundException: File res/color-v31/gm3_dynamic_default_color_secondary_text.xml from ComplexColor resource ID #0x7f0603ad
at android.content.res.ResourcesImpl.loadComplexColorForCookie (ResourcesImpl.java:1191)
at android.content.res.ResourcesImpl.loadComplexColorFromName (ResourcesImpl.java:1017)
at android.content.res.ResourcesImpl.loadColorStateList (ResourcesImpl.java:1096)
at android.content.res.Resources.loadColorStateList (Resources.java:1150)
at android.content.res.TypedArray.getColorStateList (TypedArray.java:604)
at android.graphics.drawable.GradientDrawable.updateStateFromTypedArray (GradientDrawable.java:1513)
at android.graphics.drawable.GradientDrawable.applyTheme (GradientDrawable.java:1443)
at android.content.res.ResourcesImpl.loadDrawable (ResourcesImpl.java:695)
at android.content.res.Resources.loadDrawable (Resources.java:1004)
at android.content.res.TypedArray.getDrawableForDensity (TypedArray.java:1017)
at android.content.res.TypedArray.getDrawable (TypedArray.java:991)
at android.view.View.initializeScrollbarsInternal (View.java:6956)
at android.view.View. (View.java:6317)
at android.view.ViewGroup. (ViewGroup.java:704)
at android.widget.FrameLayout. (FrameLayout.java:99)
at android.widget.ScrollView. (ScrollView.java:228)
at android.widget.ScrollView. (ScrollView.java:224)
at android.widget.ScrollView. (ScrollView.java:220)
at java.lang.reflect.Constructor.newInstance0
at java.lang.reflect.Constructor.newInstance (Constructor.java:343)
at android.view.LayoutInflater.createView (LayoutInflater.java:866)
at android.view.LayoutInflater.createView (LayoutInflater.java:788)
at com.android.internal.policy.PhoneLayoutInflater.onCreateView (PhoneLayoutInflater.java:58)
at android.view.LayoutInflater.onCreateView (LayoutInflater.java:942)
at android.view.LayoutInflater.onCreateView (LayoutInflater.java:962)
at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:1016)
at android.view.LayoutInflater.createViewFromTag (LayoutInflater.java:973)
at android.view.LayoutInflater.inflate (LayoutInflater.java:667)
at android.view.LayoutInflater.inflate (LayoutInflater.java:538)
at android.view.LayoutInflater.inflate (LayoutInflater.java:485)
at dqvd.run (:com.google.android.gms@[email protected] (190400-580326705):221)
at android.app.Activity.runOnUiThread (Activity.java:7620)
at nvq.platform_runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):1)
at nvp.runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):3)
at com.google.android.chimera.android.Activity.runOnUiThread (:com.google.android.gms@[email protected] (190400-580326705):1)
at com.google.android.location.settings.LocationSettingsCheckerChimeraActivity.onCreate (:com.google.android.gms@[email protected] (190400-580326705):171)
at nvp.public_onCreate (:com.google.android.gms@[email protected] (190400-580326705):1)
at agek.onCreate (:com.google.android.gms@[email protected] (190400-580326705):4)
at android.app.Activity.performCreate (Activity.java:8595)
at android.app.Activity.performCreate (Activity.java:8573)
at android.app.Instrumentation.callActivityOnCreate (Instrumentation.java:1456)
at android.app.ActivityThread.performLaunchActivity (ActivityThread.java:3763)
at android.app.ActivityThread.handleLaunchActivity (ActivityThread.java:3921)
at android.app.servertransaction.LaunchActivityItem.execute (LaunchActivityItem.java:103)
at android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:139)
at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:96)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2442)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loopOnce (Looper.java:205)
at android.os.Looper.loop (Looper.java:294)
at android.app.ActivityThread.main (ActivityThread.java:8170)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:971)
Caused by java.lang.UnsupportedOperationException: Can't convert value at index 0 to color: type=0x1, theme={InheritanceMap=[id=0x7f160a6ecom.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.Light], Themes=[com.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.Light, forced, com.google.android.gms:style/ThemeOverlay.GoogleMaterial3.DynamicColors.DayNight, forced, com.google.android.gms:style/AlertThemeSelector, forced, android:style/Theme.DeviceDefault.Light.DarkActionBar, forced]}
at android.content.res.TypedArray.getColor (TypedArray.java:535)
at android.content.res.ColorStateList.inflate (ColorStateList.java:366)
at android.content.res.ColorStateList.createFromXmlInner (ColorStateList.java:296)
at android.content.res.ResourcesImpl.loadComplexColorForCookie (ResourcesImpl.java:1184)

@Progrsam
Copy link

Progrsam commented Dec 4, 2023

Same issue here. I'm also not able to reproduce it on the emulator. Was someone able to fix it?

@DorBSoft
Copy link

DorBSoft commented Dec 4, 2023

I opened a bug for Google. On one hand if people here will add the information they have it can push Google to fix it. On the other hand if many examples will come from react-native code they might think this is react-native bug, which it is not. Anyway I guess marking yourself as impacted will help.
https://issuetracker.google.com/issues/314504451

@asg1997
Copy link

asg1997 commented Dec 5, 2023

Any workaround?

@jdevo2004
Copy link

Hello, all. I have maybe come up with a solution but I am not sure if it correct. The point is that it seems to have worked for me as Google Play Console is not telling me there is an error anymore. Apparently there are some instances where when you put android.permission.ACCESS_FINE_LOCATION into your AndroidManifest you must also put android.permission.ACCESS_COARSE_LOCATION in the AndroidManifest. See here for more information: https://developers.google.com/maps/documentation/android-sdk/location

Like I said earlier, I do not know if this is the correct fix to the problem but it seems to work for me.

@DorBSoft
Copy link

DorBSoft commented Dec 7, 2023

Hello, all. I have maybe come up with a solution but I am not sure if it correct. The point is that it seems to have worked for me as Google Play Console is not telling me there is an error anymore. Apparently there are some instances where when you put android.permission.ACCESS_FINE_LOCATION into your AndroidManifest you must also put android.permission.ACCESS_COARSE_LOCATION in the AndroidManifest. See here for more information: https://developers.google.com/maps/documentation/android-sdk/location

Like I said earlier, I do not know if this is the correct fix to the problem but it seems to work for me.

I am not sure about this. First, as far as I understand this is not a permissions issue, but an Android device location settings UI issue. Second, I always had both permissions in the manifest. Third, I do not encounter the issue anymore with my yesterday's app upload. I think Google either fixed it, or removed the device from pre-launch tests. Nevertheless, they did not write any update in the bug-tracker issue mentioned above.

@JamDeezCodes
Copy link

I am not encountering the issue anymore either, I think DorBSoft is right and Google has done something to correct the problem on their end.

@Aburafik
Copy link

I have also been encountering that issue with my flutter app. I just did a new upload waiting to see

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Newer Patch Available Resolution: Answered When the issue is resolved with a simple answer
Projects
None yet
Development

No branches or pull requests