Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Android Icons not working #118

Open
ccorcos opened this issue Feb 21, 2018 · 5 comments
Open

Android Icons not working #118

ccorcos opened this issue Feb 21, 2018 · 5 comments

Comments

@ccorcos
Copy link

ccorcos commented Feb 21, 2018

I'm having an issue getting the icons to work with android. It works fine with iOS. It appears to succeed:

 Checking Project & Icon

  ✓  platforms found: android
  ✓  icon.png exists
  ✓  config.xml exists

 Generating Icons for android

  ✓  mipmap-xxhdpi/icon.png created
  ✓  drawable/icon.png created
  ✓  mipmap-xhdpi/icon.png created
  ✓  mipmap-hdpi/icon.png created
  ✓  mipmap-mdpi/icon.png created
  ✓  drawable-xhdpi/icon.png created
  ✓  drawable-hdpi/icon.png created
  ✓  drawable-xxxhdpi/icon.png created
  ✓  drawable-xxhdpi/icon.png created
  ✓  mipmap-xxxhdpi/icon.png created
  ✓  mipmap-ldpi/icon.png created
  ✓  drawable-mdpi/icon.png created
  ✓  drawable-ldpi/icon.png created

But when I look at those images, some of them are the default Cordova icon and some are the splashscreen even. Any ideas?

@ccorcos
Copy link
Author

ccorcos commented Feb 21, 2018

This fixed my problem

 cp -rf platforms/android/app/src/main/res/* platforms/android/res

@yoyo-real
Copy link

Are you using old cordova-android?

Readme has the following explanation:

If you are using an older version of cordova (before 7.x):

$ sudo npm install [email protected] -g

@JoxC
Copy link

JoxC commented Mar 28, 2018

@yoyo-real Old version really fixes the problem. But my cordova is 8.0 with an old 6.3 version android. Maybe readme could be clearer. Thanks anyway.

@alexkander
Copy link

alexkander commented Nov 19, 2018

Hi @ccorcos, I made a pullrequest to solve this. [https://github.com//pull/130](pull request 130). To fix your issue you have to execute

$ cordova-icon --iconspath=platforms/android/res/

I hope it help you, regards

@jj449
Copy link

jj449 commented Dec 27, 2019

This fixed my problem

 cp -rf platforms/android/app/src/main/res/* platforms/android/res

this will cause build android error : "initialed cordova .... classs not found"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants