I run ionic run android and it starts to download lots of things except gradle
that i downloaded it and set the path myself, now i have 2 question:
1: Should ionic framework always download lots of things with every new project?
and
2: How i resolve the below error , i set ANDROID_PATH
variable to point Android-SDK where packages exist
What went wrong:
A problem occurred evaluating root project 'android':
No installed build tools found. Install the Android build tools version 19.1.0
or higher.
The answer is yes (through Gradle) and you have to set ANDROID_HOME
and then add to PATH
based on this.
On the Mac I had much the same problem. I was lacking the Android SDK. I don't know if that was your problem. I'll assume you don't have the SDK but you can pick up from your problem place in this list.
Configuration
on login splash screen or Preferences through File or Apple menu.Appearance and Behaviour > System Settings > Android SDK
Android SDK Location
. Mine is /Users/me/Library/Android/sdk
~/.profile
export ANDROID_HOME=/Users/me/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
source ~/.profile
You could have the additional problem of not having Gradle installed. Try:
/usr/local
or wherever you can write (eg. ~/lib
where I install such things locally) if you don't have admin rightscd /usr/local;ln -s gradle-3.5 gradle
/usr/local/gradle
to your $PATH
like above and source ~/.profile
again.I reread the question and realised I had added too much detail in my answer. I believe the $ANDROID_HOME
and path line is what you are missing.
You may also need to open Android Studio and do whatever configuration it requires. And setup a SDK Platform also in that configuration window discussed above.
I hope that helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With