Reputation: 37
I am currently building my first mobile application with Microsoft Visual Studio ( Community 2015 ).
The build is successful for Android, but the icon images are not being created properly for the platform. The reason I say this is because the images that are created under platforms/android/res/mipmap-* are the default Cordova icons rather than my icons.
I am using Cordova CLI 6.4.0.
The relevant lines in my config.xml file:
<platform name="android">
<allow-intent href="market:*" />
<icon src="res/icons/android/ldpi.png" density="ldpi" />
<icon src="res/icons/android/mdpi.png" density="mdpi" />
<icon src="res/icons/android/hdpi.png" density="hdpi" />
<icon src="res/icons/android/xhdpi.png" density="xhdpi" />
<icon src="res/icons/android/xxhdpi.png" density="xxhdpi" />
<icon src="res/icons/android/xxxhdpi.png" density="xxxhdpi" />
</platform>
Upvotes: 0
Views: 110
Reputation: 37
The solution to the problem of icons not being copied is to add the following line in the config.xml file:
You can edit the config.xml file in Microsoft Visual Studio by right clicking on the config.xml file and select "view code".
Upvotes: 0