应用程序在API 22 LEVEL手机中崩溃,但在API 24级手机中运行良好

时间:2018-02-08 18:20:56

标签: android

当我尝试在API LEVEL 22或更低版本的手机中运行我的应用程序时出现奇怪的错误。我不明白错误实际位于何处以及为什么在尝试在API 22级别或以下手机中运行时会发生错误。

这是我的错误logcat

  

致命的例外:主要                                                                            处理:com.example.ali.demoted,PID:21252                                                                            android.content.res.Resources $ NotFoundException:资源ID#0x7f070063                                                                                在android.content.res.Resources.getValue(Resources.java:1542)                                                                                在android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:330)                                                                                在android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:195)                                                                                在android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:188)                                                                                在android.support.v7.content.res.AppCompatResources.getDrawable(AppCompatResources.java:100)                                                                                在android.support.v7.view.menu.MenuItemImpl.getIcon(MenuItemImpl.java:491)                                                                                在android.support.v7.view.menu.ActionMenuItemView.initialize(ActionMenuItemView.java:125)                                                                                在android.support.v7.widget.ActionMenuPresenter.bindItemView(ActionMenuPresenter.java:210)                                                                                在android.support.v7.view.menu.BaseMenuPresenter.getItemView(BaseMenuPresenter.java:187)                                                                                在android.support.v7.widget.ActionMenuPresenter.getItemView(ActionMenuPresenter.java:196)                                                                                在android.support.v7.widget.ActionMenuPresenter.flagActionItems(ActionMenuPresenter.java:505)                                                                                在android.support.v7.view.menu.MenuBuilder.flagActionItems(MenuBuilder.java:1164)                                                                                在android.support.v7.view.menu.BaseMenuPresenter.updateMenuView(BaseMenuPresenter.java:95)                                                                                在android.support.v7.widget.ActionMenuPresenter.updateMenuView(ActionMenuPresenter.java:229)                                                                                在android.support.v7.view.menu.MenuBuilder.dispatchPresenterUpdate(MenuBuilder.java:291)                                                                                在android.support.v7.view.menu.MenuBuilder.onItemsChanged(MenuBuilder.java:1051)                                                                                在android.support.v7.view.menu.MenuBuilder.startDispatchingItemsChanged(MenuBuilder.java:1078)                                                                                在android.support.v7.app.ToolbarActionBar.populateOptionsMenu(ToolbarActionBar.java:461)                                                                                在android.support.v7.app.ToolbarActionBar $ 1.run(ToolbarActionBar.java:57)                                                                                在android.os.Handler.handleCallback(Handler.java:739)                                                                                在android.os.Handler.dispatchMessage(Handler.java:95)                                                                                在android.os.Looper.loop(Looper.java:135)                                                                                在android.app.ActivityThread.main(ActivityThread.java:5910)                                                                                at java.lang.reflect.Method.invoke(Native Method)                                                                                在java.lang.reflect.Method.invoke(Method.java:372)                                                                                在com.android.internal.os.ZygoteInit $ MethodAndArgsCaller.run(ZygoteInit.java:1405)                                                                                在com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1200)

0 个答案:

没有答案