Taracque / cordova-plugin-braintree

:credit_card: A Cordova plugin for the Braintree mobile payment processing SDK.
MIT License
27 stars 42 forks source link

Android Build fails #63

Open jcalvezar opened 5 years ago

jcalvezar commented 5 years ago

It says:

FAILURE: Build failed with an exception.

BUILD FAILED in 2s at ChildProcess.whenDone (/home/jca/ionicosas/dc/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:13911) 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:13911) [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 code.

krishna022 commented 5 years ago

Go to the file '/home/jca/ionicosas/dc/platforms/android/cordova-plugin-braintree/app-build-extras.gradle'

And Replace the Line no. 17 by def config = file("src/main/res/xml/config.xml").getText()

then, ionic cordova build android or, ionic cordova build android --prod