4 回答

TA贡献1794条经验 获得超8个赞
当我深入分析代码时,我发现代码中没有任何理由“你在说什么”。所以在我看来,可能的原因是:
也许您有多个可绘制文件夹,并且该文件存在于您的设备特定可绘制文件夹中,该文件夹也可能位于background_splash.xml
drawable-xxhdpi
drawable
并且很可能您正在做drawable
与您的设备无关的更改。
因此,请验证它,样式也“如果适用”也是如此。
您可以采取的其他措施是
禁用即时运行。
delete data
然后 从手机的应用程序信息>存储选项中卸载该应用程序clear cache
,然后重新安装。
希望上述技术对您有用。

TA贡献1802条经验 获得超5个赞
尝试这个:
<style name="SplashTheme" parent="Theme.AppCompat.NoActionBar">
<item name="windowActionBar">false</item>
<item name="android:windowBackground">@drawable/background_splash</item>
</style>
你确定android.intent.action.MAINACTIVITY存在吗?

TA贡献1839条经验 获得超15个赞
尝试更改android:allowBackup="true"
为android:allowBackup="false"
. 安装应用程序。然后彻底卸载它。再次安装。看主题。然后更改主题并重新安装 - 检查主题是否更改。

TA贡献1829条经验 获得超13个赞
android studio 的增量构建系统“Instant Run”存在问题。这就是为什么他们引入了新的/改进的增量构建,称为“应用更改”,作为 Marble 项目的结果。它在 android studio 3.5 版本中可用。
添加回答
举报