2

i am able to build the apk in android@6.1.2, but when i want do ionic add platform android@4.4.2and run ionic build android the console outputs

C:\Users\ ...\platforms\android\build\intermediates\res\armv7\debug\xml\authenticator.xml:2: error: Error: No resource found that matches the given name (at 'icon' with value '@mipmap/icon').

C:\Users\ ...\platforms\android\build\intermediates\res\armv7\debug\xml\authenticator.xml:2: error: Error: No resource found that matches the given name (at 'smallIcon' with value '@mipmap/icon').

no idea how to fix it and googling/searching stackoverflow didn't help me...

F.West
  • 43
  • 6

2 Answers2

2

This is an error as a result of differences in the name in the AndroidManifest.xml To resolve this

  1. Go to Android
  2. Click on app
  3. Click on src
  4. Click on main
  5. Click on res
  6. Open AndroidManifest.xml
  7. Edit the android:icon="@mipmap/ic_launcher"> to the png file name for your icon For example: if your icon file name is potato.png, you will edit the android icon to android:icon="@mipmap/potato">
  8. Go to File and click Save All
  9. Run the app again
1

Check icon's are available or not in mipmap folder, and also check config.xml file.

nivesh shastri
  • 430
  • 2
  • 13