Error creating Cordoba error

Using cordova build in a one-year project increases:

 :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 crush:

 FAILURE: Build failed with an exception. 

Any idea?

+6
source share
4 answers

I have the same problem and I solved it by creating icon paths, try this

 ionic resources --icon 

after this use below command

 ionic build 
+7
source

Does your manifest 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 replaced with @minimap. Here can be found here and here . Hope this helps.

+1
source

copy valid png to \ Android \ icon.png resources

and then run

ionic resources --icon

0
source

The cli command line executes the debug -d command to check what the problem is,

 cordova -d --stacktrace build android 
0
source

All Articles