java.lang.NumberFormatException:对于输入字符串:“ res / drawable-xhdpi-v4 / splash_screen.9.png”

问题描述 投票:0回答:1

我的应用在启动时崩溃,但出现以下异常

java.lang.NumberFormatException:对于输入字符串:“ res / drawable-xhdpi-v4 / splash_screen.9.png”

这里2分,

  1. 我的项目中没有res/drawable-xhdpi-v4/文件夹
  2. 我有res/drawable-xhdpi/,其中包含splash_screen.9.png

我有styles.xml在主题中我正在使用此可绘制对象的地方。并且,此主题用于AndroidManifest.xml

请帮助我。

android android-xml android-drawable android-theme android-styles
1个回答
0
投票

请将您的图像名称从splash_screen.9.png更改为splash_screen_9.png,然后将图像从res / drawable-xhdpi-v4 /复制/粘贴到res / drawable-xhdpi /

任何文件名都不得包含。(点)

符号。

我希望它对您有用。

© www.soinside.com 2019 - 2024. All rights reserved.