无法从pkg = com.android.systemui加载资源0x00000000

时间:2018-05-16 15:19:18

标签: android react-native

我有一个 react-native 应用程序即将启动,但我似乎突然无法在加载启动画面中呈现应用程序徽标。

我基本上只有以下内容:

<Image
  resizeMode='cover'
  source={require('../assets/appLogos/splashScreenIcon.png')}
  style={{ width: 350, height: 350 }}
/>

但是一旦图像加载,应用就崩溃了。我没有红屏或任何东西。当我查看adb logcat时,我看到以下错误:

ResourceType:No package identifier when getting value for resource number 0x00000000 Icon : Unable to load resource 0x00000000 from pkg=com.android.systemui Icon : android.content.res.Resources$NotFoundException: Resource ID #0x0 Icon : at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:201)

这只发生在android上。它适用于iOS应用程序。

0 个答案:

没有答案
相关问题