I've got an issue while use ionic cordova build android . How to fix " Execution failed for task ':app:processReleaseResources'. > Android resource linking failed authenticator.xml:2: AAPT: error: resource mipmap/icon (aka io.ionic.starter:mipmap/icon) not found. FAILURE: Build failed with an exception.
What went wrong:
Task :app:processReleaseResources FAILED Execution failed for task ':app:processReleaseResources'. Android resource linking failed C:\ES.eWarrant\eWarrant\platforms\android\app\src\main\res\xml\authenticator.xml:2: AAPT: error: resource mipmap/icon (aka io.ionic.starter:mipmap/icon) not found.
error: failed linking file resources.
Ionic is a framework which makes writing apps for almost all platforms extremely easy. If you know a little css, js and html you can create an Android/ iOS or Windows app. This instructable will focus on how to create an Android app on a Linux or Mac PC.
The Ionic CLI can build, copy, and deploy Ionic apps to Android simulators and devices with a single command. It can also spin up a development server, like the one used in ionic serve, to provide live-reload functionality.
To test it on your own device: plug it in via USB, make sure that debugging is enabled on the device (if you don't know how to do this, google is your best friend) and run $ ionic run android.
Get Ion5FullApp and enjoy lots of carefully designed pages with the most required functionalities. Over 250 ready made Angular & Ionic features and components. An infinite set of possibilities to build beautiful cross-platform apps with a huge discount.
i know this is an old topic, but if someons has this problema, i have a solution, if you use the Background Geolocation plugin from ionic native, has an issue with authenticator.xml, this uses @mipmap/icon as the resource for tha icon in the background, the way that i solved it was changing the vaules in the file android.json inside platforms/android, if you search for this
`{
"res/xml/authenticator.xml": {
"parents": {
"/*": [
{
"xml": "<account-authenticator android:accountType=\"@string/mauron85_bgloc_account_type\" android:icon=\"@mipmap/icon\" android:label=\"@string/app_name\" android:smallIcon=\"@mipmap/icon\" xmlns:android=\"http://schemas.android.com/apk/res/android\" />",
"count": 1,
"mode": "overwrite",
"plugin": "cordova-plugin-mauron85-background-geolocation",
"oldAttrib": {
"android:accountType": "@string/mauron85_bgloc_account_type",
"android:icon": "@mipmap/icon",
"android:label": "@string/app_name",
"android:smallIcon": "@mipmap/icon",
"xmlns:android": "http://schemas.android.com/apk/res/android"
}
}
]
}
}`
you can change it like this
`
{
"res/xml/authenticator.xml": {
"parents": {
"/*": [
{
"xml": "<account-authenticator android:accountType=\"@string/mauron85_bgloc_account_type\" android:icon=\"@mipmap/ic_launcher\" android:label=\"@string/app_name\" android:smallIcon=\"@mipmap/ic_launcher\" xmlns:android=\"http://schemas.android.com/apk/res/android\" />",
"count": 1,
"mode": "overwrite",
"plugin": "cordova-plugin-mauron85-background-geolocation",
"oldAttrib": {
"android:accountType": "@string/mauron85_bgloc_account_type",
"android:icon": "@mipmap/ic_launcher",
"android:label": "@string/app_name",
"android:smallIcon": "@mipmap/ic_launcher",
"xmlns:android": "http://schemas.android.com/apk/res/android"
}
}
]
}
}
}`
and it works like a charm
Regards
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