Recently I installed
android sdk from scratch using the command line tools.
$PATH variable is updated in the
Cordova version is updated too.
I installed the following packages using
- build tools
- google play services
- google repository
- platform tools
Upon building the android project, I’m getting the following error:
Command failed with exit code 1 Error output: FAILURE: Build failed
with an exception.
- What went wrong: A problem occurred configuring root project ‘android’.
Failed to find target with hash string ‘android-25’ in: /Users/manugupta/Desktop/android_sdk
- Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
I have tried this solution but still getting the same error.
This is the ionic info:
Cordova CLI: 6.5.0 Ionic Framework Version: 3.0.1 Ionic CLI Version: 2.2.2 Ionic App Lib Version: 2.2.1 Ionic App Scripts Version: 1.3.0 ios-deploy version: 1.9.1 ios-sim version: 5.0.13 OS: macOS Sierra Node Version: v6.10.2 Xcode version: Xcode 8.3.2 Build version 8E2002