cordova-plugin-braintree icon indicating copy to clipboard operation
cordova-plugin-braintree copied to clipboard

Android Build fails

Open jcalvezar opened this issue 6 years ago • 1 comments

It says:

FAILURE: Build failed with an exception.

  • Where: Script '/home/jca/ionicosas/dc/platforms/android/cordova-plugin-braintree/app-build-extras.gradle' line: 17

  • What went wrong: A problem occurred evaluating script.

/home/jca/ionicosas/dc/platforms/android/app/res/xml/config.xml (No existe el archivo o el directorio)

  • 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 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.

jcalvezar avatar Oct 12 '18 03:10 jcalvezar

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

krishna022 avatar Oct 22 '18 09:10 krishna022