Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

I run the project from android studio on my phone and got an exception #114

Closed
tankilo opened this issue Jan 14, 2015 · 2 comments
Closed

Comments

@tankilo
Copy link

tankilo commented Jan 14, 2015

01-14 21:19:59.066 26375-26375/com.google.samples.apps.iosched E/AndroidRuntime﹕ FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.google.samples.apps.iosched/com.google.samples.apps.iosched.ui.BrowseSessionsActivity}: android.content.res.Resources$NotFoundException: File res/drawable/selected_navdrawer_item_background.xml from drawable resource ID #0x7f0200eb
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2372)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2424)
at android.app.ActivityThread.access$600(ActivityThread.java:169)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1388)
at android.os.Handler.dispatchMessage(Handler.java:107)
at android.os.Looper.loop(Looper.java:194)
at android.app.ActivityThread.main(ActivityThread.java:5433)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:922)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
at dalvik.system.NativeStart.main(Native Method)
Caused by: android.content.res.Resources$NotFoundException: File res/drawable/selected_navdrawer_item_background.xml from drawable resource ID #0x7f0200eb
at android.content.res.Resources.loadDrawable(Resources.java:2032)
at android.content.res.ResourcesEx.loadDrawable(ResourcesEx.java:541)
at android.content.res.Resources.getDrawable(Resources.java:684)
at android.view.View.setBackgroundResource(View.java:14743)
at com.google.samples.apps.iosched.ui.BaseActivity.formatNavDrawerItem(BaseActivity.java:1365)
at com.google.samples.apps.iosched.ui.BaseActivity.makeNavDrawerItem(BaseActivity.java:1335)
at com.google.samples.apps.iosched.ui.BaseActivity.createNavDrawerItems(BaseActivity.java:508)
at com.google.samples.apps.iosched.ui.BaseActivity.populateNavDrawer(BaseActivity.java:486)
at com.google.samples.apps.iosched.ui.BaseActivity.setupNavDrawer(BaseActivity.java:409)
at com.google.samples.apps.iosched.ui.BaseActivity.onPostCreate(BaseActivity.java:541)
at com.google.samples.apps.iosched.ui.BrowseSessionsActivity.onPostCreate(BrowseSessionsActivity.java:191)
at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1210)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2355)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2424)
            at android.app.ActivityThread.access$600(ActivityThread.java:169)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1388)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5433)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:922)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
            at dalvik.system.NativeStart.main(Native Method)
Caused by: org.xmlpull.v1.XmlPullParserException: Binary XML file line #22: tag requires a 'drawable' attribute or child tag defining a drawable
at android.graphics.drawable.LayerDrawable.inflate(LayerDrawable.java:161)
at android.graphics.drawable.Drawable.createFromXmlInner(Drawable.java:885)
at android.graphics.drawable.Drawable.createFromXml(Drawable.java:822)
at android.content.res.Resources.loadDrawable(Resources.java:2029)
            at android.content.res.ResourcesEx.loadDrawable(ResourcesEx.java:541)
            at android.content.res.Resources.getDrawable(Resources.java:684)
            at android.view.View.setBackgroundResource(View.java:14743)
            at com.google.samples.apps.iosched.ui.BaseActivity.formatNavDrawerItem(BaseActivity.java:1365)
            at com.google.samples.apps.iosched.ui.BaseActivity.makeNavDrawerItem(BaseActivity.java:1335)
            at com.google.samples.apps.iosched.ui.BaseActivity.createNavDrawerItems(BaseActivity.java:508)
            at com.google.samples.apps.iosched.ui.BaseActivity.populateNavDrawer(BaseActivity.java:486)
            at com.google.samples.apps.iosched.ui.BaseActivity.setupNavDrawer(BaseActivity.java:409)
            at com.google.samples.apps.iosched.ui.BaseActivity.onPostCreate(BaseActivity.java:541)
            at com.google.samples.apps.iosched.ui.BrowseSessionsActivity.onPostCreate(BrowseSessionsActivity.java:191)
            at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1210)
            at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2355)
            at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2424)
            at android.app.ActivityThread.access$600(ActivityThread.java:169)
            at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1388)
            at android.os.Handler.dispatchMessage(Handler.java:107)
            at android.os.Looper.loop(Looper.java:194)
            at android.app.ActivityThread.main(ActivityThread.java:5433)
            at java.lang.reflect.Method.invokeNative(Native Method)
            at java.lang.reflect.Method.invoke(Method.java:525)
            at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:922)
            at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:689)
            at dalvik.system.NativeStart.main(Native Method)

@tankilo
Copy link
Author

tankilo commented Jan 14, 2015

image

@eneim
Copy link

eneim commented Jan 14, 2015

see #112 for the same discussion

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

No branches or pull requests

3 participants