• Register
0 votes

Problem :

I am trying to learn the Android and Ionic. If I run the ionic build android command in the root of the ionic project, I am facing below error:

FAILURE: Build failed with an exception.
•Where: Script '/home/javad/Desktop/javadApp/platforms/android/CordovaLib/cordova.gradle' line: 64
•What went wrong: A problem occurred evaluating root project 'android'.
No installed build tools found. Please 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.


2.3k points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I was going through some of the interesting questions on this forum and I came across your question.

It is very common error for the programmers who are new to Android and Ionic.

I guess you might have forgotten to set the class paths properly.

Please set the paths as shown below they are same for Ubantu and Mac

export ANDROID_HOME=/Users/mphil/Software/android-sdk-macosx

export PATH=${PATH}:/Users/mphil/Software/android-sdk-macosx/tools

export PATH=${PATH}:/Users/mphil/Software/android-sdk-macosx/platform-tools

After setting up the environment variables you must reload the environment variables using below commands

//For your ubuntu

$source .bashrc

//For your macos

$source .bash_profile

Now you can check in your terminal using below commands

$printenv ANDROID_HOME

$printenv PATH

If  you do not see your changes in printenv then try to restart your pc and run above commands again.

Now open the terminal and write $and and try to hit the tab if you see the complete $android then your installation is properly done.

Now you will not face above error.

15.1k points

Related questions

0 votes
1 answer 68 views
Problem: Any help, URGENT: No installed build tools found. install the android build tools version 19.1.0 or higher.
asked Mar 14 Wafa Abu Yousef 6.1k points
0 votes
1 answer 280 views
Problem: Do you have any suggestions about how I can resolve this “Gradle wrapper makes the execution of the build independent of the installed gradle version”?
asked Mar 30 tuhin1 48.9k points
0 votes
1 answer 33 views
Problem: As I mentioned in my previous query, I'm having difficulties with my learning; I've tried searching the web but haven't been able to find adequate information; could you assist me in continuing my project?
asked Mar 30 tuhin1 48.9k points
0 votes
2 answers 304 views
Problem : I am working on the Ionic project in Ubuntu 16.04 LTS, and now I am preparing for release. So I am running the following command: cordova build --release android But I am facing the following error: Error: Could not find gradle wrapper within Android SDK. Might need to ... .1 · I am having All Android versions from 2.1 (Eclair) to 7.1.1 (Nougat) Does anybody have any clue on this error?
asked Nov 29, 2019 alecxe 7.5k points
0 votes
1 answer 10 views
Problem: Is there someone who can help : Blink deferred a task in order to make scrolling smoother?
asked Jun 24 Rada Gracelynn 104k points
0 votes
1 answer 17 views
Problem: Is there any way to solve this : Cordova-plugin-mauron85-background-geolocation?
asked May 27 Junia Phoebe 83.8k points
0 votes
1 answer 66 views
Problem: Need to facilitate with this : An error occurred while running subprocess cordova.
asked May 20 Sawyer Parviz 168k points
0 votes
1 answer 129 views
Problem: I am trying to rebuild an ios app, that previously had no issues (first rebuild in 6 months or so). Environment is OSX 10.13.5 with all the latest updates, Xcode 9.4.1, Ionic is 3.20.0. Local cordova ... /kerickhowlett/Documents/PhoneProjects/ABM/platforms/ios/build/device,SHARED_PRECOMPS_DIR=/Users/kerickhowlett/Documents/PhoneProjects/ABM/platforms/ios/build/sharedpch What am I missing?
asked Apr 30 muktaa 34.6k points
0 votes
1 answer 30 views
Problem: During my project in Xcode, at later stages I am getting this alert. Profiles and device management missing ios 12.
asked Mar 22 PkGuy 25.9k points
0 votes
1 answer 53 views
Problem : xcode couldn't find any ios app development provisioning profiles matching
asked Feb 28 Sabbir Hossain 14.6k points