Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android Build fails #63

Open
jcalvezar opened this issue Oct 12, 2018 · 1 comment
Open

Android Build fails #63

jcalvezar opened this issue Oct 12, 2018 · 1 comment

Comments

@jcalvezar
Copy link

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.

@krishna022
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants