hbb20 / hbb20/CountryCodePickerProject

InflateException related to hbb20 CountryCodePicker

未关闭
#403 32 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
1.5k
派生
509
PR 合并指标
30 天内没有已合并 PR

描述

I tried to debug for long time and the exception is happening for some old version phones.

== Crash phone device examples ==

Device Brand: Trend
Model: TaintArt for x86
Orientation: Portrait
RAM free: 761.6 MB
Disk free: 1.91 GB
plat_android Operating System
Version: 7.1.2
Orientation: Portrait
Rooted: Yes

Device Brand: LGE
Model: Nexus 5X
Orientation: Portrait
RAM free: 1.41 GB
Disk free: 542.95 MB
plat_android Operating System
Version: 8.1.0
Orientation: Portrait
Rooted: No

Device Brand: Huawei
Model: Huawei Enjoy 9s
Orientation: Portrait
RAM free: 19.55 GB
Disk free: 17.41 GB
plat_android Operating System
Version: 5.1
Orientation: Portrait
Rooted: Yes

== Stack Trace ==

Caused by android.content.res.Resources$NotFoundException: Unable to find resource ID #0x7f070069
at android.content.res.Resources.getResourceName(Resources.java:2070)
at android.content.res.Resources.loadDrawableForCookie(Resources.java:2441)
at android.content.res.Resources.loadDrawable(Resources.java:2381)
at android.content.res.TypedArray.getDrawable(TypedArray.java:749)
at android.widget.ImageView.(ImageView.java:146)
at android.widget.ImageView.(ImageView.java:135)
at androidx.appcompat.widget.AppCompatImageView.(AppCompatImageView.java:74)
at androidx.appcompat.widget.AppCompatImageView.(AppCompatImageView.java:69)
at androidx.appcompat.app.AppCompatViewInflater.createImageView(AppCompatViewInflater.java:199)
at androidx.appcompat.app.AppCompatViewInflater.createView(AppCompatViewInflater.java:119)
at androidx.appcompat.app.AppCompatDelegateImpl.createView(AppCompatDelegateImpl.java:1548)
at androidx.appcompat.app.AppCompatDelegateImpl.onCreateView(AppCompatDelegateImpl.java:1599)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:725)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at com.hbb20.CountryCodePicker.init(CountryCodePicker.java:212)
at com.hbb20.CountryCodePicker.(CountryCodePicker.java:160)
at java.lang.reflect.Constructor.newInstance(Constructor.java)
at java.lang.reflect.Constructor.newInstance(Constructor.java:288)
at android.view.LayoutInflater.createView(LayoutInflater.java:607)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:743)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:806)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:809)
at android.view.LayoutInflater.inflate(LayoutInflater.java:504)
at android.view.LayoutInflater.inflate(LayoutInflater.java:414)
at com.faxgun.faxgun.adapter.ListViewAdapter.setListViewHeaderFooter$550b9414(ListViewAdapter.java:41)
at com.faxgun.faxgun.views.SendFaxTab.setListView(SendFaxTab.java:417)
at com.faxgun.faxgun.views.SendFaxTab.showListView(SendFaxTab.java:328)
at com.faxgun.faxgun.adapter.TabViewAdapter.showSendFaxTabListView(TabViewAdapter.java:138)
at com.faxgun.faxgun.views.MainTab.processFinish(MainTab.java:160)
at com.faxgun.faxgun.task.AppStartInitTask.onPostExecute(AppStartInitTask.java:67)
at com.faxgun.faxgun.task.AppStartInitTask.onPostExecute(AppStartInitTask.java:20)
at android.os.AsyncTask.finish(AsyncTask.java:636)
at android.os.AsyncTask.access$500(AsyncTask.java:177)
at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:653)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5314)
at java.lang.reflect.Method.invoke(Method.java)
at java.lang.reflect.Method.invoke(Method.java:374)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

贡献指南

这个仓库没有索引到贡献指南

调研方向

Start at com.hbb20.CountryCodePicker.init, especially the layout inflation reported at CountryCodePicker.java:212, and reproduce the Resources$NotFoundException on the listed Android versions. Trace the resource referenced while AppCompatImageView is created; done means identifying the failing resource path and confirming that CountryCodePicker no longer crashes during inflation.

由索引模型根据 Issue 内容生成。

评估

技术栈
android, java
领域
mobile
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。