Using cordova build
on a one-year-old project raises:
:processDebugResources
my_project/platforms/android/build/intermediates/manifests/full/debug/AndroidManifest.xml:24: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon').
And then crushes:
FAILURE: Build failed with an exception.
Any idea?
I got the same problem and I solved this by re generating icon paths, try this
ionic resources --icon
after this use below command
ionic build
In your manifest, does it have:
android:icon="@drawable/ic_launcher"
If so, you can try switching it to:
android:icon="@mipmap/ic_launcher"
It seems that @drawable has been superseded by @minimap. More info can be found here and here. Hope this helps.
There is debug option -d
in the cli run the below command to check what is the problem,
cordova -d --stacktrace build android
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With