0

我从 APK 切换到应用程序包,我从 crashlitics 中得到以下错误:

Fatal Exception: android.content.res.Resources$NotFoundException: Resource ID #0x7f0800b5
       at android.content.res.Resources.getValue(Resources.java:1561)
       at android.content.res.MiuiResources.getValue(MiuiResources.java:146)
       at android.support.v7.widget.AppCompatDrawableManager.loadDrawableFromDelegates(AppCompatDrawableManager.java:332)
       at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:197)
       at android.support.v7.widget.AppCompatDrawableManager.getDrawable(AppCompatDrawableManager.java:190)
       at android.support.v7.content.res.AppCompatResources.getDrawable(AppCompatResources.java:100)
       at android.support.v7.view.menu.MenuItemImpl.getIcon(MenuItemImpl.java:425)
       at android.support.v7.view.menu.ActionMenuItemView.initialize(ActionMenuItemView.java:129)
       at android.support.v7.widget.ActionMenuPresenter.bindItemView(ActionMenuPresenter.java:211)
       at android.support.v7.view.menu.BaseMenuPresenter.getItemView(BaseMenuPresenter.java:186)
       at android.support.v7.widget.ActionMenuPresenter.getItemView(ActionMenuPresenter.java:197)
       at android.support.v7.widget.ActionMenuPresenter.flagActionItems(ActionMenuPresenter.java:479)
       at android.support.v7.view.menu.MenuBuilder.flagActionItems(MenuBuilder.java:1160)
       at android.support.v7.view.menu.BaseMenuPresenter.updateMenuView(BaseMenuPresenter.java:95)
       at android.support.v7.widget.ActionMenuPresenter.updateMenuView(ActionMenuPresenter.java:234)
       at android.support.v7.view.menu.MenuBuilder.dispatchPresenterUpdate(MenuBuilder.java:292)
       at android.support.v7.view.menu.MenuBuilder.onItemsChanged(MenuBuilder.java:1047)
       at android.support.v7.view.menu.MenuBuilder.startDispatchingItemsChanged(MenuBuilder.java:1074)
       at android.support.v7.app.AppCompatDelegateImplV9.preparePanel(AppCompatDelegateImplV9.java:1410)
       at android.support.v7.app.AppCompatDelegateImplV9.doInvalidatePanelMenu(AppCompatDelegateImplV9.java:1648)
       at android.support.v7.app.AppCompatDelegateImplV9$1.run(AppCompatDelegateImplV9.java:140)
       at android.os.Handler.handleCallback(Handler.java:815)
       at android.os.Handler.dispatchMessage(Handler.java:104)
       at android.os.Looper.loop(Looper.java:207)
       at android.app.ActivityThread.main(ActivityThread.java:5856)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:933)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:782)

在我的 R.java 中:

public static int design_fab_size_mini = 0x7f0800b5;

关于发生了什么以及如何解决的任何想法?

4

1 回答 1

2

是的,在将 apk 侧载到不同设备后,它会在 Android App Bundle 中发生,这是正常的,请参阅文档 https://developer.android.com/guide/app-bundle/

由于应用安装可能需要下载多个 APK(例如基础 APK 及其一些配置 APK),因此在手动将应用的 APK 传输到设备(也称为旁加载)时应小心。否则,由于缺少代码和资源,您的应用可能会遇到运行时问题。

于 2018-10-06T20:11:51.010 回答