Cordova build error - Command failed with exit code 1

#1

when run cordova build android

Ionic:

   ionic (Ionic CLI) : 4.12.0 (C:\Users\Codedev\AppData\Roaming\npm\node_modules\ionic)
   Ionic Framework   : ionic1 1.3.1
   @ionic/v1-toolkit : 1.0.22

Cordova:

   cordova (Cordova CLI) : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms     : android 8.0.0
   Cordova Plugins       : cordova-plugin-ionic-webview 4.0.1, (and 17 other plugins)

System:

   Android SDK Tools : 26.1.1 (F:\sdk)
   NodeJS            : v10.15.3 (C:\Program Files\nodejs\node.exe)
   npm               : 6.9.0
   OS                : Windows Server 2016
cordova build android --info
Running command: node F:\Ionic\old\sudafax\hooks\after_prepare\010_add_platform_class.js F:\Ionic\old\sudafax
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=F:\sdk (DEPRECATED)
Subproject Path: CordovaLib
Subproject Path: app

> Configure project :appProject evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.


FAILURE: Build failed with an exception.

* Where:
Script 'F:\Ionic\old\sudafax\platforms\android\onesignal-cordova-plugin\starter-build-extras-onesignal.gradle' line: 1

* What went wrong:
A problem occurred evaluating script.
> F:\Ionic\old\sudafax\platforms\android\app\AndroidManifest.xml (The system cannot find the file specified)

* 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

BUILD FAILED in 2s
F:\Ionic\old\sudafax\platforms\android\gradlew: Command failed with exit code 1 Error output:
Project evaluation failed including an error in afterEvaluate {}. Run with --stacktrace for details of the afterEvaluate {} error.

FAILURE: Build failed with an exception.

* Where:
Script 'F:\Ionic\old\sudafax\platforms\android\onesignal-cordova-plugin\starter-build-extras-onesignal.gradle' line: 1

* What went wrong:
A problem occurred evaluating script.
> F:\Ionic\old\sudafax\platforms\android\app\AndroidManifest.xml (The system cannot find the file specified)

* 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

BUILD FAILED in 2s
#2

What is your version for one-signal?
See that…

#3

one-signal “version”: “2.0.4”

#4

any suggestions ? should i upgrade my onesignal or downgrade ?