APK Build error after update to meteor version 2.5.3

Getting this error while building APK after update to meteor js version to 2.5.3 from 2.3.6
ERROR LOG:

Currently, it is only possible to build iOS apps on an OS X system.

WARNING: The output directory is under your source tree.
         Your generated files may get interpreted as source code!
         Consider building into a different directory instead
         meteor build ../output

Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db

Why you should do it regularly:
https://github.com/browserslist/browserslist#browsers-data-updating
Creating a new cordova project.
WARNING: Attempting to install plugin cordova-plugin-camera@0.3.1, but it
         should have a minimum version of 2.4.1 to ensure compatibility with
         the current platform versions. Installing the minimum version for
         convenience, but you should adjust your dependencies.
Using cordova-fetch for cordova-android@10.1.1
Adding android project...
Creating Cordova project for the Android platform:
	Path: platforms/android
	Package: com.app.mytag.postroom.staging
	Name: Postroom
	Activity: MainActivity
	Android target: android-30
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@10.1.1
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
Installing "cordova-plugin-android-permissions" for android
Installing "cordova-plugin-appinfo-sync" for android
Installing "cordova-plugin-camera" for android
Installing "cordova-plugin-compat" for android
%% Plugin doesn't support this project's cordova-android version. cordova-android: 10.1.1, failed version requirement: 
      <6.3.0
Plugin doesn't support this project's cordova-android version. cordova-android: 10.1.1, failed version requirement: 
      <6.3.0
%% Skipping 'cordova-plugin-compat' for android
Skipping 'cordova-plugin-compat' for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-device" for android
Installing "cordova-plugin-file-transfer" for android
Installing "cordova-plugin-file" for android

The Android Persistent storage location now defaults to "Internal". Please check this plugin's README to see if your application needs any changes in its config.xml.

If this is a new application no changes are required.

If this is an update to an existing application that did not specify an "AndroidPersistentFileLocation" you may need to add:

      "<preference name="AndroidPersistentFileLocation" value="Compatibility" />"

to config.xml in order for the application to find previously stored files.
        
Installing "cordova-plugin-meteor-webapp" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-qr-barcode-scanner" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-splashscreen" for android
Installing "cordova-plugin-statusbar" for android
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
Using cordova-fetch for cordova-ios@6.2.0
Adding ios project...
Creating Cordova project for the iOS platform:
	Path: platforms/ios
	Package: com.app.mytag.postroom.staging
	Name: Postroom
iOS project created with cordova-ios@6.2.0
Installing "cordova-plugin-android-permissions" for ios
Installing "cordova-plugin-appinfo-sync" for ios
Installing "cordova-plugin-camera" for ios
Plugin dependency "cordova-plugin-compat@1.2.0" already fetched, using that version.
Installing "cordova-plugin-compat" for ios
Dependent plugin "cordova-plugin-compat" already installed on ios.
Installing "cordova-plugin-device" for ios
Installing "cordova-plugin-file" for ios
Installing "cordova-plugin-file-transfer" for ios
Plugin dependency "cordova-plugin-file@6.0.2" already fetched, using that version.
Dependent plugin "cordova-plugin-file" already installed on ios.
Installing "cordova-plugin-meteor-webapp" for ios
%% apple-ios version check failed (/var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/ios/cordova/apple_ios_version), continuing anyways.
apple-ios version check failed (/var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/ios/cordova/apple_ios_version), continuing anyways.
%% apple-xcode version check failed (/var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/ios/cordova/apple_xcode_version), continuing anyways.
apple-xcode version check failed (/var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/ios/cordova/apple_xcode_version), continuing anyways.
Installing "cordova-plugin-qr-barcode-scanner" for ios
Installing "cordova-plugin-splashscreen" for ios
Installing "cordova-plugin-statusbar" for ios
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
%% config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
config file *-Info.plist requested for changes not found at /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/*-Info.plist, ignoring
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=/opt/Android/Sdk (DEPRECATED)
Using Android SDK: /opt/Android/Sdk
Reading build config file: /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/build.json
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :wrapper

BUILD SUCCESSFUL in 6s
1 actionable task: 1 executed
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon (subsequent builds will be faster)

FAILURE: Build failed with an exception.

* Where:
Script '/var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/CordovaLib/cordova.gradle' line: 75

* What went wrong:
A problem occurred evaluating script.
> No usable Android build tools found. Highest 30.x installed version is 29.0.2; minimum version required is 30.0.3.

* 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 6s
=> Errors executing Cordova commands:

   While building Cordova app for platform Android:
   Error: Command failed with exit code 1:
   /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/gradlew
   cdvBuildRelease -b
   /var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/platforms/android/build.gradle
   at makeError
   (/var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/node_modules/execa/lib/error.js:60:11)
   at handlePromise
   (/var/lib/jenkins/workspace/Postroom-Dev-Web-And-APK/.meteor/local/cordova-build/node_modules/execa/index.js:118:26)
   at processTicksAndRejections (internal/process/task_queues.js:95:5)
   => awaited here:
   at Function.Promise.await
   (/var/lib/jenkins/.meteor/packages/meteor-tool/.2.5.3.14evxav.mikm++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
   at /tools/cordova/project.js:325:7
   at
   /var/lib/jenkins/.meteor/packages/meteor-tool/.2.5.3.14evxav.mikm++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40
   => awaited here:
   at Function.Promise.await
   (/var/lib/jenkins/.meteor/packages/meteor-tool/.2.5.3.14evxav.mikm++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
   at CordovaProject.runCommands (/tools/cordova/project.js:896:22)
   at CordovaProject.buildForPlatform (/tools/cordova/project.js:323:10)
   at /tools/cli/commands.js:1201:30
   at Object.enterJob (/tools/utils/buildmessage.js:388:12)
   at /tools/cli/commands.js:1184:22
   at Object.capture (/tools/utils/buildmessage.js:283:5)
   at Object.main.captureAndExit (/tools/cli/main.js:281:29)
   at buildCommand (/tools/cli/commands.js:1159:10)
   at /tools/cli/commands.js:946:25
   at Function.run
   (/var/lib/jenkins/.meteor/packages/meteor-tool/.2.5.3.14evxav.mikm++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/tool-env/tools/tool-env/profile.ts:289:14)
   at /tools/cli/commands.js:944:18
   at
   /var/lib/jenkins/.meteor/packages/meteor-tool/.2.5.3.14evxav.mikm++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Build step 'Execute shell' marked build as failure
Finished: FAILURE

hi @suneethloremine
as the message says, you have to install the latest android build tools. You can watch this video for a how to: How to Develop with Android on Meteor - YouTube

No usable Android build tools found. Highest 30.x installed version is 29.0.2; minimum version required is 30.0.3.

Also, seems like some plugins you have are not compatible with the latest cordova-android platform, so you have to review them.

1 Like

Thank you @renanccastro

@renanccastro i have updated my plugin versions and build tools, now i am stuck on this error, please take a look, Thank u.

Task :app:compileReleaseJavaWithJavac FAILED
/home/loremine/Projects/postroom/postroom-PR-373-custom-sla-report/postroom/.meteor/local/cordova-build/platforms/android/app/src/main/java/org/apache/cordova/filetransfer/FileTransfer.java:48: error: cannot find symbol
import org.apache.cordova.Whitelist;
                         ^r Android          -
  symbol:   class Whitelist
  location: package org.apache.cordova
/home/loremine/Projects/postroom/postroom-PR-373-custom-sla-report/postroom/.meteor/local/cordova-build/platforms/android/app/src/main/java/org/apache/cordova/filetransfer/FileTransfer.java:691: error: cannot find symbol
                Whitelist whitelist = (Whitelist)gwl.invoke(webView);
                ^
  symbol:   class Whitelist
  location: class org.apache.cordova.filetransfer.FileTransfer
/home/loremine/Projects/postroom/postroom-PR-373-custom-sla-report/postroom/.meteor/local/cordova-build/platforms/android/app/src/main/java/org/apache/cordova/filetransfer/FileTransfer.java:691: error: cannot find symbol
                Whitelist whitelist = (Whitelist)gwl.invoke(webView);
                                       ^
  symbol:   class Whitelist
  location: class org.apache.cordova.filetransfer.FileTransfer
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
3 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output 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 1m 4s
46 actionable tasks: 46 executed
=> Errors executing Cordova commands:         
                                              
   While building Cordova app for platform Android:
   Error: Command failed with exit code 1:    
   /home/loremine/Projects/postroom/postroom-PR-373-custom-sla-report/postroom/.meteor/local/cordova-build/platforms/android/gradlewrdova app for Android          /
   cdvBuildRelease -b
   /home/loremine/Projects/postroom/postroom-PR-373-custom-sla-report/postroom/.meteor/local/cordova-build/platforms/android/build.gradle
   at makeError
   (/home/loremine/Projects/postroom/postroom-PR-373-custom-sla-report/postroom/.meteor/local/cordova-build/node_modules/execa/lib/error.js:60:11)
   at handlePromise
   (/home/loremine/Projects/postroom/postroom-PR-373-custom-sla-report/postroom/.meteor/local/cordova-build/node_modules/execa/index.js:118:26)
   at processTicksAndRejections (internal/process/task_queues.js:95:5)
   => awaited here:
   at Function.Promise.await
   (/home/loremine/.meteor/packages/meteor-tool/.2.5.3.14evxav.mikm++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
   at /tools/cordova/project.js:325:7
   at
   /home/loremine/.meteor/packages/meteor-tool/.2.5.3.14evxav.mikm++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40
   => awaited here:
   at Function.Promise.await
   (/home/loremine/.meteor/packages/meteor-tool/.2.5.3.14evxav.mikm++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/promise_server.js:56:12)
   at CordovaProject.runCommands (/tools/cordova/project.js:896:22)
   at CordovaProject.buildForPlatform (/tools/cordova/project.js:323:10)
   at /tools/cli/commands.js:1201:30
   at Object.enterJob (/tools/utils/buildmessage.js:388:12)
   at /tools/cli/commands.js:1184:22
   at Object.capture (/tools/utils/buildmessage.js:283:5)
   at Object.main.captureAndExit (/tools/cli/main.js:281:29)
   at buildCommand (/tools/cli/commands.js:1159:10)
   at /tools/cli/commands.js:946:25
   at Function.run
   (/home/loremine/.meteor/packages/meteor-tool/.2.5.3.14evxav.mikm++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/tools/tool-env/tools/tool-env/profile.ts:289:14)
   at /tools/cli/commands.js:944:18
   at
   /home/loremine/.meteor/packages/meteor-tool/.2.5.3.14evxav.mikm++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/lib/node_modules/meteor-promise/fiber_pool.js:43:40
error Command failed with exit code 1.

This is a known error. Do a google search. New version of Cordova has some changes for Whitelist

For me it was on local notification plugin, you have to use the right version

Thank you @perumalkuk