-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:
Error generating the apk: 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.
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.
– Daniel Brito
Daneil, try looking here: https://answall.com/questions/250486/ionic-3-build-error?rq=1
– Ronaldo Freitas
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.
– Daniel Brito
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...
– Daniel Brito
tries this: https://ionicframework.com/docs/pro/package/android.html or this: https://ionicframework.com/docs/v1/guide/publishing.html
– Ronaldo Freitas