Error: Source path does not exist: resources\android\icon\drawable-hdpi-icon.png

后端 未结 12 1145
梦毁少年i
梦毁少年i 2020-12-28 14:26

I\'m trying to get an APK file from a Ionic project with the \"cordova build --release android\" command on a Mac and it doesn\'t work as I get

12条回答
  •  情深已故
    2020-12-28 15:14

    A quick alternative answer:

    Error: Source path does not exist: resources\android\icon\drawable-hdpi-icon.png
    

    Is the same as

    Error: Source path does not exist: resources\android\icon\foreground-hdpi-icon.png
    

    or

    Error: Source path does not exist: resources\android\icon\background-hdpi-icon.png
    

    And any other in that category

    The command looks for base files namely icon-drawable.png | icon-foreground.png | icon-background.png


    in location android/resources so the best thing is to include those images in android/resources then re-run cordova build --release android or ionic cordova resources android to check

提交回复
热议问题