C:\Users\David Gurgel\Ionic\aluracar>ionic cordova build android
Running app-scripts build: --platform android --target cordova
[13:33:07] build dev started ...
[13:33:07] clean started ...
[13:33:07] clean finished in 20 ms
[13:33:07] copy started ...
[13:33:07] deeplinks started ...
[13:33:07] deeplinks finished in 124 ms
[13:33:07] transpile started ...
[13:33:13] transpile finished in 5.48 s
[13:33:13] preprocess started ...
[13:33:13] preprocess finished in 3 ms
[13:33:13] webpack started ...
[13:33:13] copy finished in 5.90 s
[13:33:22] webpack finished in 9.11 s
[13:33:22] sass started ...
Without from
option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to undefined
to prevent this warning.
[13:33:24] sass finished in 1.68 s
[13:33:24] postprocess started ...
[13:33:24] postprocess finished in 22 ms
[13:33:24] lint started ...
[13:33:24] build dev finished in 16.68 s
cordova build android Android Studio project detected
ANDROID_HOME=C:\Users\David Gurgel\AppData\Local\Android\sdk JAVA_HOME=C:\Program Files\java\jdk1.8.0_131 studio Subproject Path: CordovaLib Subproject Path: app [13:33:31] lint finished in 7.42 s publishNonDefault is deprecated and has no effect anymore. All variants are now published.
Checking the license for package Android SDK Platform 26 in C:\Users\David Gurgel\AppData\Local\Android\sdk\licenses Warning: License for package Android SDK Platform 26 not accepted.
FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':CordovaLib'.
You have not accepted the license agreements of the following SDK components: [Android SDK Platform 26]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
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 3s (node:6340) UnhandledPromiseRejectionWarning: Error: cmd: Command failed with exit code 1 Error output: FAILURE: Build failed with an exception.
What went wrong: A problem occurred configuring project ':CordovaLib'.
You have not accepted the license agreements of the following SDK components: [Android SDK Platform 26]. Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager. Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html
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 3s at ChildProcess.whenDone (C:\Users\David Gurgel\Ionic\aluracar\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:6340) 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:6340) [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.