glenelkinsdev opened a new issue, #1563:
URL: https://github.com/apache/cordova-android/issues/1563

   I'm at the end of my tether with this, the ionic cordova app builds fine for 
iOS but when i try to build for android i get this "Task 
:app:mergeReleaseResources FAILED"
   
   It doesn't give me any information on what this is supposed to mean! The 
resources in the splash and icon folders are there so i don't know what it's 
talking about. Here is the output:
   
   ```
   > Task :app:mergeReleaseResources FAILED
   
   FAILURE: Build failed with an exception.
   
   * What went wrong:
   Execution failed for task ':app:mergeReleaseResources'.
   > A failure occurred while executing 
com.android.build.gradle.internal.res.ResourceCompilerRunnable
      > Resource compilation failed. Check logs for details.
   
   * Try:
   Run with --stacktrace option to get the stack trace. Run with --info or 
--debug option to get more log output. Run with --scan to get full insights.
   
   * Get more help at https://help.gradle.org
   
   Deprecated Gradle features were used in this build, making it incompatible 
with Gradle 8.0.
   
   You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.
   
   See 
https://docs.gradle.org/7.1.1/userguide/command_line_interface.html#sec:command_line_warnings
   
   BUILD FAILED in 12s
   29 actionable tasks: 9 executed, 20 up-to-date
   Command failed with exit code 1: 
/Volumes/Second/Projects/my-filter/frontend/platforms/android/gradlew 
:app:bundleRelease -b 
/Volumes/Second/Projects/my-filter/frontend/platforms/android/build.gradle
   Error: Command failed with exit code 1: 
/Volumes/Second/Projects/my-filter/frontend/platforms/android/gradlew 
:app:bundleRelease -b 
/Volumes/Second/Projects/my-filter/frontend/platforms/android/build.gradle
       at makeError 
(/Volumes/Second/Projects/my-filter/frontend/node_modules/cordova-android/node_modules/execa/lib/error.js:60:11)
       at handlePromise 
(/Volumes/Second/Projects/my-filter/frontend/node_modules/cordova-android/node_modules/execa/index.js:118:26)
       at processTicksAndRejections (node:internal/process/task_queues:96:5)
       at async ProjectBuilder.build 
(/Volumes/Second/Projects/my-filter/frontend/node_modules/cordova-android/lib/builders/ProjectBuilder.js:316:20)
   [ERROR] An error occurred while running subprocess cordova.
           
           cordova build android --release --verbose exited with exit code 1.
           
           Re-running this command with the --verbose flag may provide more 
information.
     ionic:utils-process onBeforeExit handler: 'process.exit' received +0ms
     ionic:utils-process onBeforeExit handler: running 2 functions +1ms
     ionic:utils-process processExit: exiting (exit code: 1) +29ms
   ```
   
   This is my package.json - as i say this builds no problem for iOS and this 
error it's giving me doesn't even make sense:
   
   ```
   {
     "name": "org.apache.cordova.newapp",
     "displayName": "frontend",
     "version": "1.0.0",
     "description": "A sample Apache Cordova application that responds to the 
deviceready event.",
     "main": "index.js",
     "scripts": {
       "ng": "ng",
       "start": "ng serve",
       "build": "ng build",
       "test": "ng test",
       "lint": "ng lint",
       "e2e": "ng e2e",
       "build-prod": "node --max_old_space_size=5048 
./node_modules/@angular/cli/bin/ng build --prod"
     },
     "private": true,
     "dependencies": {
       "@angular-devkit/build-angular": "^0.803.24",
       "@angular/animations": "^10.2.5",
       "@angular/cdk": "^14.2.1",
       "@angular/common": "^8.2.10",
       "@angular/compiler": "^8.2.10",
       "@angular/core": "^8.2.10",
       "@angular/forms": "^8.2.14",
       "@angular/http": "^7.2.16",
       "@angular/platform-browser": "^8.2.10",
       "@angular/platform-browser-dynamic": "^8.2.10",
       "@angular/router": "^8.2.10",
       "@awesome-cordova-plugins/camera": "^5.39.0",
       "@awesome-cordova-plugins/core": "^5.37.3",
       "@awesome-cordova-plugins/diagnostic": "^5.37.3",
       "@awesome-cordova-plugins/file": "^5.39.0",
       "@awesome-cordova-plugins/ionic-webview": "^5.37.3",
       "@awesome-cordova-plugins/keyboard": "^5.41.0",
       "@awesome-cordova-plugins/photo-viewer": "^5.38.0",
       "@ionic-native/core": "^5.36.0",
       "@ionic-native/fcm": "^5.36.0",
       "@ionic-native/file": "^5.36.0",
       "@ionic-native/image-picker": "^5.36.0",
       "@ionic-native/in-app-browser": "^5.36.0",
       "@ionic-native/media-capture": "^5.36.0",
       "@ionic/angular": "^5.9.3",
       "@ionic/cordova-builders": "^7.0.0",
       "@ionic/core": "^5.8.4",
       "@ng-bootstrap/ng-bootstrap": "^5.3.1",
       "angular-linky": "^1.2.2",
       "angular-password-strength-meter": "^3.0.1",
       "cordova-plugin-splashscreen": "^6.0.2",
       "date-fns": "^2.25.0",
       "emoji-js": "^3.6.0",
       "flatpickr": "^4.6.9",
       "hammerjs": "^2.0.8",
       "ionicons": "^5.5.3",
       "jquery": "^3.6.0",
       "ng-socket-io": "^0.2.4",
       "ng2-cordova-oauth": "^0.0.8",
       "ng2-file-upload": "^1.4.0",
       "ngb-modal": "^2.0.3",
       "ngx-emoji-picker": "0.0.2",
       "ngx-file-drop": "^10.1.1",
       "ngx-image-cropper": "^3.3.5",
       "ngx-infinite-scroll": "^9.1.0",
       "ngx-ui-loader": "^8.0.0",
       "rxjs": "^6.6.7",
       "rxjs-compat": "^6.6.7",
       "socket.io-client": "^2.4.0",
       "tslib": "^1.14.1",
       "ws": "^7.5.5",
       "zone.js": "~0.9.1",
       "zxcvbn3": "^0.1.1"
     },
     "devDependencies": {
       "@angular/cli": "^8.3.29",
       "@angular/compiler-cli": "^8.2.10",
       "@angular/language-service": "^8.2.10",
       "@ionic/angular-toolkit": "latest",
       "@types/jasmine": "~3.3.8",
       "@types/jasminewd2": "^2.0.10",
       "@types/node": "~8.9.4",
       "codelyzer": "^5.0.0",
       "com-sarriaroman-photoviewer": "^1.2.5",
       "cordova-android": "^10.1.2",
       "cordova-ios": "^6.2.0",
       "cordova-plugin-camera": "^6.0.0",
       "cordova-plugin-compat": "^1.2.0",
       "cordova-plugin-device": "2.0.2",
       "cordova-plugin-fcm-with-dependecy-updated": "^7.8.0",
       "cordova-plugin-file": "^4.0.0",
       "cordova-plugin-inappbrowser": "^5.0.0",
       "cordova-plugin-ionic-keyboard": "^2.0.5",
       "cordova-plugin-ionic-webview": "^5.0.0",
       "cordova-plugin-media-capture-mp4video": "^1.0.5",
       "cordova-plugin-statusbar": "2.4.2",
       "cordova-plugin-telerik-imagepicker": "^2.3.3",
       "cordova-plugin-videoeditorsdk": "^3.1.0",
       "cordova-plugin-whitelist": "^1.3.5",
       "cordova-plugin-x-socialsharing": "^6.0.3",
       "cordova-plugin-x-toast": "^2.7.3",
       "cordova.plugins.diagnostic": "^6.1.0",
       "es6-promise-plugin": "^4.2.2",
       "jasmine-core": "~3.4.0",
       "jasmine-spec-reporter": "~4.2.1",
       "karma": "~4.1.0",
       "karma-chrome-launcher": "~2.2.0",
       "karma-coverage-istanbul-reporter": "~2.0.1",
       "karma-jasmine": "~2.0.1",
       "karma-jasmine-html-reporter": "^1.7.0",
       "protractor": "~5.4.0",
       "ts-node": "~7.0.0",
       "tslint": "~5.15.0",
       "typescript": "~3.5.3"
     },
     "keywords": [
       "ecosystem:cordova"
     ],
     "author": "Apache Cordova Team",
     "license": "Apache-2.0",
     "cordova": {
       "plugins": {
         "cordova-plugin-inappbrowser": {},
         "cordova-plugin-x-socialsharing": {
           "PHOTO_LIBRARY_ADD_USAGE_DESCRIPTION": "This app requires photo 
library access to function properly.",
           "PHOTO_LIBRARY_USAGE_DESCRIPTION": "This app requires photo library 
access to function properly."
         },
         "cordova-plugin-statusbar": {},
         "cordova-plugin-device": {},
         "cordova-plugin-ionic-webview": {},
         "cordova-plugin-ionic-keyboard": {},
         "cordova.plugins.diagnostic": {},
         "cordova-plugin-x-toast": {},
         "com-sarriaroman-photoviewer": {},
         "cordova-plugin-camera": {},
         "cordova-plugin-media-capture-mp4video": {},
         "cordova-plugin-file": {},
         "cordova-plugin-videoeditorsdk": {},
         "cordova-plugin-telerik-imagepicker": {
           "PHOTO_LIBRARY_USAGE_DESCRIPTION": "Allow user to select images from 
device"
         },
         "cordova-plugin-fcm-with-dependecy-updated": {
           "ANDROID_GRADLE_TOOLS_VERSION": "4.1.0",
           "ANDROID_GOOGLE_SERVICES_VERSION": "4.3.4",
           "ANDROID_DEFAULT_NOTIFICATION_ICON": "@mipmap/ic_launcher",
           "ANDROID_FCM_VERSION": "21.0.0",
           "ANDROID_FIREBASE_BOM_VERSION": "26.0.0",
           "IOS_FIREBASE_MESSAGING_VERSION": "~> 7.4.0"
         },
         "cordova-plugin-compat": {},
         "cordova-plugin-whitelist": {}
       },
       "platforms": [
         "ios",
         "android"
       ]
     }
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to