Resources$NotFoundException: Resource is not a Drawable (color or path) の不具合の解決策について

103 views
Skip to first unread message

ishihara sayuri

unread,
Oct 15, 2014, 5:03:41 AM10/15/14
to android-g...@googlegroups.com
始めまして。
個人でAndroidのアプリを開発している者です。

この度は、「Resources$NotFoundException: Resource is not a Drawable (color or path)」の
強制終了不具合の対応についてご教授頂けないかと思い投稿させていただきました。
よろしくお願い致します。

スケジュールアプリを開発してリリースしており、機能追加に伴い
TabFragmentを使用したUIにアップデートしました。

そうすると強制終了の不具合が発生し、原因がつかめないという状況になり
困っております。

不具合状況は、アプリを開くとすぐに強制終了し、開けなくなるというものです。

不具合が発生している端末は一部であり、
私の持っているテスト端末では不具合は発生しておりません。

また、再インストールした後、一度は開くようですが
2度目から強制終了してしまうという状況の端末もあるようです。


不具合内容は次になります。


java.lang.RuntimeException: Unable to start activity ComponentInfo{com.choitoippuku.merry.simplecalender/com.choitoippuku.merry.simplecalender.SimpleCalender}: android.view.InflateException: Binary XML file line #3: Error inflating class <unknown>
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2078)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2103)
at android.app.ActivityThread.access$600(ActivityThread.java:139)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1214)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.app.ActivityThread.main(ActivityThread.java:4832)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:511)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:789)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:556)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.view.InflateException: Binary XML file line #3: Error inflating class <unknown>
at android.view.LayoutInflater.createView(LayoutInflater.java:613)
at com.android.internal.policy.impl.PhoneLayoutInflater.onCreateView(PhoneLayoutInflater.java:56)
at android.view.LayoutInflater.onCreateView(LayoutInflater.java:660)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:685)
at android.view.LayoutInflater.inflate(LayoutInflater.java:466)
at android.view.LayoutInflater.inflate(LayoutInflater.java:396)
at android.view.LayoutInflater.inflate(LayoutInflater.java:352)
at com.android.internal.policy.impl.PhoneWindow.setContentView(PhoneWindow.java:333)
at android.app.Activity.setContentView(Activity.java:1867)
at com.choitoippuku.merry.simplecalender.SimpleCalender.onCreate(SimpleCalender.java:96)
at android.app.Activity.performCreate(Activity.java:5008)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1079)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2042)
... 11 more
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.constructNative(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:417)
at android.view.LayoutInflater.createView(LayoutInflater.java:587)
... 23 more
Caused by: android.content.res.Resources$NotFoundException: Resource is not a Drawable (color or path): TypedValue{t=0x2/d=0x7f010011 a=-1}
at android.content.res.Resources.loadDrawable(Resources.java:1892)
at android.content.res.TypedArray.getDrawable(TypedArray.java:601)
at android.view.View.<init>(View.java:3476)
at android.view.ViewGroup.<init>(ViewGroup.java:427)
at android.widget.LinearLayout.<init>(LinearLayout.java:176)
at android.widget.LinearLayout.<init>(LinearLayout.java:172)
... 26 more


エラーが起きている端末は
 ・ AQUOS PHONE ZETA SH-02E(SH02E)
 ・ Nexus 5(hammerhead)
 ・ MEDIAS X N-07D(N-07D)
 ・ ARROWS ef FJL21(FJL21)
 ・ LG G2(g2)
以上です。
エラー発生端末のバージョンは4.1~4.4になります。


何度か不具合対応で試みたことは、
 ・ リソースの漏れがあるのかと考えての、解像度ごとに分けられているファイル内に画像がもれていないかの確認
 ・ 画像が重いのかと考えての、画像のサイズの見直し
 ・ メモリの解放が必要と考えての、画像やビューのクリア
 ・ ヒープサイズを確認しての、容量の大きいViewの軽量化
以上です。



これを行ったのですが、エラー状況は変わりませんでした。
他に対応策は何かありませんでしょうか?

アプリのユーザー様も不具合に困っておられ、改善に待って頂いている状況で
1人では限界を感じております。
ご存知の方はご教授頂けませんでしょうか?


Reply all
Reply to author
Forward
0 new messages