@fmenghini wrote:
Hi, when I try to start my Ionic App with the
ionic cordova run android
or the
ionic cordova emulate android
the process failsI’ve this output in Console:
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugResources'. aapt2 is missing on 'C:\Users\f.menghini\AppData\Local\Android\sdk\build-tools \27.0.3\aapt2.exe' * 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 21 actionable tasks: 1 executed, 20 up-to-date (node:7156) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejec tion id: 1): Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':app:mergeDebugResources'. aapt2 is missing on 'C:\Users\f.menghini\AppData\Local\Android\sdk\build-tools \27.0.3\aapt2.exe' * 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 (node:7156) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js p rocess with a non-zero exit code. [OK] Your app has been deployed. Did you know you can live-reload changes from your app with --livereload?
I’ve checked in the specified path and the aapt2.exe doesn’t exist.
How can I resolve this trouble?
Posts: 1
Participants: 1