Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229115

Ionic cordova build error

$
0
0

i download it, but also output me some error:

this is the error:

> cordova build android
\ Running command [20:44:24]  lint finished in 5.49 s
✖ Running command - failed!

[ERROR] Cordova encountered an error.
        You may get more insight by running the Cordova command above directly.

[ERROR] An error occurred while running cordova build android (exit code 1):

        ANDROID_HOME=C:\Users\User\AppData\Local\Android\sdk
        JAVA_HOME=C:\Program Files\java\jdk1.8.0_131
        Subproject Path: CordovaLib
        Download https://jcenter.bintray.com/com/android/tools/lint/lint-checks/25.2.3/lint-checks-25.2.3.jar
        The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use
        Task.doLast(Action) instead.
        at build_35yvq9nqv5571mebe4jm6vlr6.run(C:\Users\User\Desktop\ionic
        2\44\scanbot-sdk-example-ionic2-master (2)\scanbot-sdk-example-ionic2-master\platforms\android\build.gradle:138)
        Checking the license for package Android SDK Platform 25 in C:\Users\User\AppData\Local\Android\sdk\licenses
        Warning: License for package Android SDK Platform 25 not accepted.

        FAILURE: Build failed with an exception.

        * What went wrong:
        A problem occurred configuring root project 'android'.
        > You have not accepted the license agreements of the following SDK components:
        [Android SDK Platform 25].
        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
        BUILD FAILED
        option to get more log output.

        Total time: 3 mins 49.444 secs
        Error: cmd: Command failed with exit code 1 Error output:
        FAILURE: Build failed with an exception.

        * What went wrong:
        A problem occurred configuring root project 'android'.
        > You have not accepted the license agreements of the following SDK components:
        [Android SDK Platform 25].
        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.

Viewing all articles
Browse latest Browse all 229115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>