适用于Cordova的VS Tools会覆盖Android图标

时间:2018-05-17 10:19:52

标签: visual-studio-cordova

每次更改config.xml向导中的设置时,config.xml文件中的Android图标都会被删除。

这是config.xml文件中为android设置图标的条目:

  <platform name="android">
    <splash density="land-hdpi" src="res/screens/android/screen-hdpi-landscape.png" />
    <splash density="land-ldpi" src="res/screens/android/screen-ldpi-landscape.png" />
    <splash density="land-mdpi" src="res/screens/android/screen-mdpi-landscape.png" />
    <splash density="land-xhdpi" src="res/screens/android/screen-xhdpi-landscape.png" />
    <splash density="port-hdpi" src="res/screens/android/screen-hdpi-portrait.png" />
    <splash density="port-ldpi" src="res/screens/android/screen-ldpi-portrait.png" />
    <splash density="port-mdpi" src="res/screens/android/screen-mdpi-portrait.png" />
    <splash density="port-xhdpi" src="res/screens/android/screen-xhdpi-portrait.png" />
  </platform>
  <platform name="android">
    <icon density="ldpi" src="res/icons/android/mipmap-ldpi/ic_launcher.png" />
    <icon density="mdpi" src="res/icons/android/mipmap-mdpi/ic_launcher.png" />
    <icon density="hdpi" src="res/icons/android/mipmap-hdpi/ic_launcher.png" />
    <icon density="xhdpi" src="res/icons/android/mipmap-xhdpi/ic_launcher.png" />
    <icon density="xxhdpi" src="res/icons/android/mipmap-xxhdpi/ic_launcher.png" />
    <icon density="xxxhdpi" src="res/icons/android/mipmap-xxxhdpi/ic_launcher.png" />
  </platform>

在我更改了向导中的内容后(如版本代码),图标消失了。不过,我的iOS图标仍然存在。

0 个答案:

没有答案