Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48981

FAILURE: Build completed with 2 failures in Ionic

$
0
0

C:\Users\Amol-PC\WeatherIonic1>ionic cordova build android --release --prod

ionic-app-scripts.cmd build --prod --target cordova --platform android
[16:42:01] ionic-app-scripts 3.2.4
[16:42:01] build prod started …
[16:42:01] clean started …
[16:42:01] clean finished in 32 ms
[16:42:01] copy started …
[16:42:01] deeplinks started …
[16:42:01] deeplinks finished in 21 ms
[16:42:01] ngc started …
[16:42:18] ngc finished in 16.62 s
[16:42:18] preprocess started …
[16:42:18] preprocess finished in 2 ms
[16:42:18] webpack started …
[16:42:20] copy finished in 19.30 s
[16:42:42] webpack finished in 24.09 s
[16:42:42] uglify started …
[16:42:42] sass started …
[16:42:47] sass finished in 4.56 s
[16:42:47] cleancss started …
[16:42:51] cleancss finished in 3.82 s
[16:43:04] uglify finished in 22.28 s
[16:43:04] postprocess started …
[16:43:05] postprocess finished in 19 ms
[16:43:05] lint started …
[16:43:05] build prod finished in 63.45 s
[16:43:09] lint finished in 4.91 s
cordova.cmd build android --release
Checking Java JDK and Android SDK versions
ANDROID_SDK_ROOT=undefined (recommended setting)
ANDROID_HOME=C:\Users\Amol-PC\AppData\Local\Android\Sdk\tools (DEPRECATED)
Using Android SDK: C:\Users\Amol-PC\AppData\Local\Android\Sdk\tools
Subproject Path: CordovaLib
Subproject Path: app
Starting a Gradle Daemon, 1 incompatible and 1 stopped Daemons could not be reused, use --status for details

FAILURE: Build completed with 2 failures.

1: Task failed with an exception.

  • Where:
    Script ‘C:\Users\Amol-PC\WeatherIonic1\platforms\android\CordovaLib\cordova.gradle’ line: 64

  • What went wrong:
    A problem occurred evaluating project ‘:app’.

No installed build tools found. Install the Android build tools version 19.1.0 or higher.

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

2: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ‘:app’.

compileSdkVersion is not specified. Please add it to build.gradle

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
    ==============================================================================

  • Get more help at https://help.gradle.org

BUILD FAILED in 38s
Command failed with exit code 1: C:\Users\Amol-PC\WeatherIonic1\platforms\android\gradlew cdvBuildRelease -b C:\Users\Amol-PC\WeatherIonic1\platforms\android\build.gradle
[ERROR] An error occurred while running subprocess cordova.

    cordova.cmd build android --release exited with exit code 1.

    Re-running this command with the --verbose flag may provide more information.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48981

Trending Articles



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