Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Version 1.2.9 => Getting ANR issue in LocalizationActivityDelegate.kt file. #123

Open
MihirAhir opened this issue Dec 10, 2021 · 5 comments

Comments

@MihirAhir
Copy link

I don't have any idea how its generated because its work fine in our device but i'm getting this ANR in crashlytics.
I'm getting below Stack trace in crashlytics.

android.content.res.AssetManager.nativeList (AssetManager.java)
android.content.ContextWrapper.createConfigurationContext (ContextWrapper.java:982)
com.akexorcist.localizationactivity.core.LocalizationActivityDelegate.getResources (LocalizationActivityDelegate.java:112)
com.akexorcist.localizationactivity.ui.LocalizationActivity.getResources (LocalizationActivity.java:50)
androidx.appcompat.widget.ResourceManagerInternal.createDrawableIfNeeded (ResourceManagerInternal.java:179)
androidx.appcompat.widget.ResourceManagerInternal.getDrawable (ResourceManagerInternal.java:144)
androidx.appcompat.widget.ResourceManagerInternal.getDrawable (ResourceManagerInternal.java:135)
androidx.appcompat.content.res.AppCompatResources.getDrawable (AppCompatResources.java:104)
androidx.appcompat.widget.AppCompatImageHelper.loadFromAttributes (AppCompatImageHelper.java:63)
androidx.appcompat.widget.AppCompatImageView. (AppCompatImageView.java:82)
androidx.appcompat.widget.AppCompatImageView. (AppCompatImageView.java:69)
androidx.appcompat.app.AppCompatViewInflater.createImageView (AppCompatViewInflater.java:199)
androidx.appcompat.app.AppCompatViewInflater.createView (AppCompatViewInflater.java:119)
androidx.appcompat.app.AppCompatDelegateImpl.createView (AppCompatDelegateImpl.java:1563)
androidx.appcompat.app.AppCompatDelegateImpl.onCreateView (AppCompatDelegateImpl.java:1614)

image

Below is the device info in which i'm getting this ANR

image

@AxitaKathiriya
Copy link

I am getting the same issue while inflating Resources in multiple OS. Please provide a solution.

@axitasavani
Copy link

Hi, @akexorcist, Please do something for this ANR it is too much after updating the library.
Currently used version: 1.2.9

@vishrut2207
Copy link

I am also facing the same issue.

image

@axitasavani
Copy link

Hi, Any update on this?

@akexorcist
Copy link
Owner

Since AndroidX AppCompat has per-app language preferences for backward compatibility. Please migrate this library to AndroidX for more stability, compatibility, and longer support from Google team.

See Migrate to AndroidX guide

Thank you for your support

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants