Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.1k views
in Technique[技术] by (71.8m points)

android - How to fix: Execution failed for task ':app:processReleaseResources'

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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...