I am running the ionic cordova build android
and getting this error:
C:\Store\APP_DEVELOPMENT\PROTIMA\protima>ionic cordova build android
cordova build android
Running command: “C:\Program Files\nodejs\node.exe” C:\Store\APP_DEVELOPMENT\PROTIMA\protima\hooks\after_prepare\010_add_platform_class.js C:\Store\APP_DEVELOPMENT\PROTIMA\protima
add to body class: platform-android
ANDROID_HOME=C:\Program Files (x86)\Android\android-sdk
JAVA_HOME=C:\Program Files\IBM\Java80
Subproject Path: CordovaLib
The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.
at build_b0o1qatserkm5v49vmgr0eqs7.run(C:\Store\APP_DEVELOPMENT\PROTIMA\protima\platforms\android\build.gradle:141)
publishNonDefault is deprecated and has no effect anymore. All variants are now published.
:preBuild
UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:preDebugBuild
UP-TO-DATE
:CordovaLib:compileDebugAidl
UP-TO-DATE
:compileDebugAidl
UP-TO-DATE
:CordovaLib:packageDebugRenderscript
NO-SOURCE
:compileDebugRenderscript
UP-TO-DATE
:checkDebugManifest
UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:prepareLintJar
UP-TO-DATE
:generateDebugResValues
UP-TO-DATE
:generateDebugResources UP-TO-DATE
:CordovaLib:compileDebugRenderscript
UP-TO-DATE
:CordovaLib:generateDebugResValues
UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources
UP-TO-DATE
:mergeDebugResources
C:\Store\APP_DEVELOPMENT\PROTIMA\protima\platforms\android\res\xml\config.xml:60: AAPT: error: unbound prefix.
C:\Store\APP_DEVELOPMENT\PROTIMA\protima\platforms\android\res\xml\config.xml:60: error: unbound prefix.
Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: check logs for details
:mergeDebugResources FAILED
14 actionable tasks: 1 executed, 13 up-to-date
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:mergeDebugResources’.
Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: 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. -
Get more help at https://help.gradle.org
BUILD FAILED in 6s
(node:10752) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output:
C:\Store\APP_DEVELOPMENT\PROTIMA\protima\platforms\android\res\xml\config.xml:60: AAPT: error: unbound prefix.
C:\Store\APP_DEVELOPMENT\PROTIMA\protima\platforms\android\res\xml\config.xml:60: error: unbound prefix.
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:mergeDebugResources’.
Error: java.util.concurrent.ExecutionException: com.android.tools.aapt2.Aapt2Exception: AAPT2 error: 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. -
Get more help at https://help.gradle.org
BUILD FAILED in 6s
at ChildProcess.whenDone (C:\Store\APP_DEVELOPMENT\PROTIMA\protima\platforms\android\cordova\node_modules\cordova-common\src\superspawn.js:169:23)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
(node:10752) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which
was not handled with .catch(). (rejection id: 1)
(node:10752) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit c
ode.
ionic info
cli packages: (C:\Users\IBM_ADMIN\AppData\Roaming\npm\node_modules)
@ionic/cli-utils : 1.19.2
ionic (Ionic CLI) : 3.20.0
global packages:
cordova (Cordova CLI) : 8.0.0
Gulp CLI : not installed globally
local packages:
Cordova Platforms : android 6.4.0
Ionic Framework : ionic1 1.3.1
System:
Android SDK Tools : 25.2.5
Node : v8.10.0
npm : 5.6.0
OS : Windows 7
Environment Variables:
ANDROID_HOME : C:\Program Files (x86)\Android\android-sdk
Misc:
backend : pro