Ionic 3 android平台上的启动画面无法正常工作

问题描述 投票:-1回答:2

我一直在寻找3天的答案而无法找到答案,我已安装插件(cordova-plugin-splashscreen)并将插件最新降级到2.0.0,重新定位我的图片并重命名我的文件夹/资源到/ res,把它放到平台/ android / src / main / res文件夹仍然没什么用。这是我的config.xml

<platform name="android">
    <allow-intent href="market:*" />
    <icon density="ldpi" src="resources/android/icon/drawable-ldpi-icon.png" />
    <icon density="mdpi" src="resources/android/icon/drawable-mdpi-icon.png" />
    <icon density="hdpi" src="resources/android/icon/drawable-hdpi-icon.png" />
    <icon density="xhdpi" src="resources/android/icon/drawable-xhdpi-icon.png" />
    <icon density="xxhdpi" src="resources/android/icon/drawable-xxhdpi-icon.png" />
    <icon density="xxxhdpi" src="resources/android/icon/drawable-xxxhdpi-icon.png" />
    <splash density="land-ldpi" src="resources/android/icon/drawable-land-ldpi-screen.png" />
    <splash density="land-mdpi" src="resources/android/icon/drawable-land-mdpi-screen.png" />
    <splash density="land-hdpi" src="resources/android/icon/drawable-land-hdpi-screen.png" />
    <splash density="land-xhdpi" src="resources/android/icon/drawable-land-xhdpi-screen.png" />
    <splash density="land-xxhdpi" src="resources/android/icon/drawable-land-xxhdpi-screen.png" />
    <splash density="land-xxxhdpi" src="resources/android/icon/drawable-land-xxxhdpi-screen.png" />
    <splash density="port-ldpi" src="resources/android/icon/drawable-port-ldpi-screen.png" />
    <splash density="port-mdpi" src="resources/android/icon/drawable-port-mdpi-screen.png" />
    <splash density="port-hdpi" src="resources/android/icon/drawable-port-hdpi-screen.png" />
    <splash density="port-xhdpi" src="resources/android/icon/drawable-port-xhdpi-screen.png" />
    <splash density="port-xxhdpi" src="resources/android/icon/drawable-port-xxhdpi-screen.png" />
    <splash density="port-xxxhdpi" src="resources/android/icon/drawable-port-xxxhdpi-screen.png" />
</platform>
<plugin name="cordova-plugin-splashscreen" spec="^2.0.0" />
ionic-framework ionic2 ionic3
2个回答
© www.soinside.com 2019 - 2024. All rights reserved.