I am trying to build an android app with Ionic and Cordova:
ionic cordova build android --prod --release
But since I'm using a new MacBook, I'm getting this error:
What went wrong:
Execution failed for task ':app:processReleaseResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
/Users/valentin/Documents/tablano Tracker/tablano_winter_app/platforms/android/app/src/main/res/xml/authenticator.xml:2: AAPT: error: resource mipmap/icon (aka de.tablano.tracker2:mipmap/icon) not found.
Ionic CLI : 5.4.16 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.11.10
@angular-devkit/build-angular : 0.13.9
@angular-devkit/schematics : 7.3.9
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.5.1
Cordova:
Cordova CLI : 10.0.0
Cordova Platforms : android 9.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, cordova-plugin-ionic-webview 4.0.1, (and 11 other plugins)
Utility:
cordova-res : 0.15.2
native-run : not installed
System:
ios-sim : 8.0.2
NodeJS : v10.15.3 (/usr/local/bin/node)
npm : 6.14.3
OS : macOS Big Sur
Xcode : Xcode 12.3 Build version 12C33
My Gradle --version is: Gradle 6.7.1
It seems to be related with my gradle versioning. But I couldn't find any solution for it yet.
Does anyone knows how to fix this?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…