Android Cordova build fails at AAPT

Meteor cordova build fails at AAPT. I’m not sure what I’m doing wrong here. I’m using,
Meteor 1.3.4.4
SDK tools 23.0.1
Build tools 23.0.1
Platform tools 23.0.1
OS - Mac OS sierra

Any help is appreciated, thanks!

Error log:

While running Cordova app for platform Android with options --device:
Error: Command failed:
/Users/xxx/.meteor/local/cordova-build/platforms/android/cordova/run
–device
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

/Users/xxx/.meteor/local/cordova-build/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:3
: AAPT: Error retrieving parent for item: No resource found that matches the
given name
’android:TextAppearance.Material.Widget.Button.Borderless.Colored’.

/Users/xxx/.meteor/local/cordova-build/platforms/android/build/intermediates/res/merged/debug/values-v24/values-v24.xml:4
: AAPT: Error retrieving parent for item: No resource found that matches the
given name ‘android:TextAppearance.Material.Widget.Button.Colored’.

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ‘:processDebugResources’.

com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process ‘command
’/Users/xxx/Library/Android/sdk/build-tools/23.0.1/aapt’’ finished with
non-zero exit value 1

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or
    –debug option to get more log output.
    Error code 1 for command:
    /Users/xxx/.meteor/local/cordova-build/platforms/android/gradlew
    with args:
    cdvBuildDebug,-b,/Users/xxx/.meteor/local/cordova-build/platforms/android/build.gradle,-PcdvBuildArch=arm,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
    undefined
    at ChildProcess.exitCallback (/tools/utils/processes.js:151:23)
    at ChildProcess.emit (events.js:98:17)
    at Process.ChildProcess._handle.onexit (child_process.js:820:12)

/Users/xxx/.meteor/packages/fourseven_scss/.3.8.1.19wbc3j++os.osx.x86_64+web.browser+web.cordova/plugin.compileScssBatch.os.osx.x86_64/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165
throw error;
^
ExitWithCode:1

I couldn’t resolve with Meteor 1.3. Updated the Meteor to 1.5 and some of the working code failed after the update. Fixed the code and it works finally.