Build failure for ionic app

Hi i am trying to build apk using below command.

ionic cordova run android

Whenever i try to do this i am getting the below error.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:app:processDebugResources’.

Android resource linking failed
F:…platforms\android\app\src\main\res\xml\authenticator.xml:2: AAPT: error: resource mipmap/icon (aka io.skanray.icrm:mipmap/icon) not found

No where i found the proper solution. Can anyone please help me solving this.
Thanks in advance.

There is might be issue with build.gradle or any plugin conflict with each other

1 Like

@sivu thanks for the reply.
what exactly plugin conflict means??

For example Firebase and Google map If this plugin conflict with each other
Try to remove plugin one by one and try to build app

1 Like

yeah, i am using background geolocation plugin and i am very sure that is causing the issue.
But background geolocation tracking is the main feature of my app. So, how do i solve this.

1 Like

I did’t know about that much

Go in platforms\android\app\src\main\res\ and create image with ic_launcher.png and icon.png both in all the folders starting mipmap-hdpi issue will be solved

2 Likes

Thanks, Let me try that!

Yes that was the only issue i was facing when i added background geolocation plugin

i’m facing the same issue now. if you find any solution please suggest me

follow the above step, it works.

1 Like