Error generating build in Ionic release mode

Asked

Viewed 234 times

-2

I developed an Ionic 3 application. All builds in debug mode were generated correctly, but when trying to generate apk in release mode is giving error.

Ionic Info:

Ionic Info Error generating the apk: Erro I have tried deleting the node_modules folder and installing again with the npm install command.

I also tested by removing the Ios and android platforms and adding again.

Please help me out there.

2 answers

0


From what I understand of the error, it seems to me a problem with the Node

"... withou a catch block, or by rejecting a Promise which was not Handler with . catch() ..."

Try installing an earlier version of Node through NVM to see if it works.

  • You have now given the error below: (Node:25384) Unhandledpromiserejectionwarning: Unhandled Promise rejection (rejection id: 1): Failed to prepare plug-in f or android : An Unexpected error occurred. Contact IBM support. (Node:25384) [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.

  • Daneil, try looking here: https://answall.com/questions/250486/ionic-3-build-error?rq=1

  • The apk in debug mode generated normal, but in release gave other errors: Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for Details. Note: Some input files use unchecked or unsafe Operations. Note: Recompile with -Xlint:unchecked for Details. Note: there Were 11 Duplicate class Definitions.

  • After removing the Android platform and adding again, but with version 6.15.0 worked, generated the apk in release mode. Now trying to sign apk, is giving error: keytool is not recognized as an internal command...

  • tries this: https://ionicframework.com/docs/pro/package/android.html or this: https://ionicframework.com/docs/v1/guide/publishing.html

0

After some researches I managed to solve, deleting the Android platform and adding again, but in version 6.15.0. Thank you all for your help.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.