I used ionic 1.7.16 , OS Ubuntu 16.10
when try use command “ionic build android” it raises error
"ERROR building one of the platforms: Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable."
Although i installed android sdk and used to build simple android application and worked well
please also note that the project is build fine in windows
What does that mean?
Please execute cordova requirements
and ionic info
and give use their output.
it means that i tried to build same project with same ionic,cordova, node versions and build is fine
Java JDK: installed .
Android SDK: installed
Android target: not installed
Android SDK not found. Make sure that it is installed. If it is not at the default location, set the ANDROID_HOME environment variable.
Gradle: not installed
Could not find gradle wrapper within Android SDK. Might need to update your Android SDK.
Looked here: /home/unilever/androidSDK/tools/templates/gradle/wrapper
Error: Some of requirements check failed
Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.1
Gulp local:
Ionic Framework Version: 1.0.0
Ionic CLI Version: 1.7.16
Ionic App Lib Version: 0.7.3
OS: Distributor ID: Ubuntu Description: Ubuntu 16.10
Node Version: v4.2.6
Do what this says.
This is super ancient. You should upgrade to a current version (v3.x.x), this also works fine with Ionic v1 projects.