1 Reply Latest reply on May 29, 2017 2:01 PM by vangroover

    No resource found that matches the given name (at 'icon' with value '@drawable/icon').

    davidv58068477

      Hi,

       

      I've updated phonegap CLI from 6.3.0 to 6.5.0, but now the build fails with error below:

       

      --------------

      processDebugResources/project/res/xml/authenticator.xml:4:19-33: AAPT: No resource found that matches the given name (at 'icon' with value '@drawable/icon').
      /project/res/xml/authenticator.xml:5:24-38: AAPT: No resource found that matches the given name (at 'smallIcon' with value '@drawable/icon').

      /project/build/intermediates/res/merged/debug/xml/authenticator.xml:2: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon').

      /project/build/intermediates/res/merged/debug/xml/authenticator.xml:2: error: Error: No resource found that matches the given name (at 'smallIcon' with value '@drawable/icon').

      ...

      Complete error : * What went wrong: Execution failed for task ':processDebugResources'. > com.android.ide.common.process.ProcessException: Failed to execute aapt

      --------------

       

      If i revert back to Phonegap CLI 6.3.0, the build is successful again. What I'm missing?

       

      My folder/file structure is like so:

      \www

      29-05-2017  12:49    <DIR>          assets

      29-05-2017  12:49    <DIR>          build

      29-05-2017  12:45    <DIR>          res

      29-05-2017  12:42             1.431 index.html

      29-05-2017  12:42               715 service-worker.js

      29-05-2017  09:56           530.737 splash.png

       

      \www\assets

      29-05-2017  12:49    <DIR>          fonts

      29-05-2017  12:49    <DIR>          icon

       

      \www\assets\fonts

      29-05-2017  12:42           144.114 ionicons.eot

      29-05-2017  12:42             1.152 ionicons.scss

      29-05-2017  12:42           400.219 ionicons.svg

      29-05-2017  12:42           143.936 ionicons.ttf

      29-05-2017  12:42            80.356 ionicons.woff

      29-05-2017  12:42            61.020 ionicons.woff2

      29-05-2017  12:42           415.132 noto-sans-bold.ttf

      29-05-2017  12:42           211.888 noto-sans-bold.woff

      29-05-2017  12:42           414.820 noto-sans-regular.ttf

      29-05-2017  12:42           212.780 noto-sans-regular.woff

      29-05-2017  12:42             1.282 noto-sans.scss

      29-05-2017  12:42            20.040 roboto-bold.ttf

      29-05-2017  12:42            13.348 roboto-bold.woff

      29-05-2017  12:42            10.212 roboto-bold.woff2

      29-05-2017  12:42            19.908 roboto-light.ttf

      29-05-2017  12:42            13.360 roboto-light.woff

      29-05-2017  12:42            10.220 roboto-light.woff2

      29-05-2017  12:42            19.752 roboto-medium.ttf

      29-05-2017  12:42            13.248 roboto-medium.woff

      29-05-2017  12:42            10.192 roboto-medium.woff2

      29-05-2017  12:42            19.876 roboto-regular.ttf

      29-05-2017  12:42            13.308 roboto-regular.woff

      29-05-2017  12:42            10.196 roboto-regular.woff2

      29-05-2017  12:42             1.458 roboto.scss

       

       

      \www\assets\icon

      29-05-2017  12:42             1.981 favicon.ico

       

      \www\build

      29-05-2017  12:42           521.774 main.css

      29-05-2017  12:42                 4 main.css.map

      29-05-2017  12:42         4.064.834 main.js

      29-05-2017  12:42         4.733.267 main.js.map

      29-05-2017  12:42            89.629 polyfills.js

      29-05-2017  12:42            15.793 sw-toolbox.js

       

      \www\res

      29-05-2017  12:45    <DIR>          icon

      29-05-2017  12:45    <DIR>          splash

       

      \www\res\icon

      29-05-2017  12:45    <DIR>          android

       

      \www\res\icon\android

      29-05-2017  09:56             5.425 drawable-hdpi-icon.png

      29-05-2017  09:56             2.490 drawable-ldpi-icon.png

      29-05-2017  09:56             3.486 drawable-mdpi-icon.png

      29-05-2017  09:56             7.629 drawable-xhdpi-icon.png

      29-05-2017  09:56            12.008 drawable-xxhdpi-icon.png

      29-05-2017  09:56            16.395 drawable-xxxhdpi-icon.png

       

      \www\res\splash

      29-05-2017  09:56           197.069 drawable-land-hdpi-screen.png

      29-05-2017  09:56            57.229 drawable-land-ldpi-screen.png

      29-05-2017  09:56            98.339 drawable-land-mdpi-screen.png

      29-05-2017  09:56           364.412 drawable-land-xhdpi-screen.png

      29-05-2017  09:56           522.411 drawable-land-xxhdpi-screen.png

      29-05-2017  09:56           202.162 drawable-port-hdpi-screen.png

      29-05-2017  09:56            61.154 drawable-port-ldpi-screen.png

      29-05-2017  09:56           104.254 drawable-port-mdpi-screen.png

      29-05-2017  09:56           376.014 drawable-port-xhdpi-screen.png

      29-05-2017  09:56           530.737 drawable-port-xxhdpi-screen.png