• Register
0 votes
2k views

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.

 

8 4 2
2,300 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.

5 2 1
4,980 points

Related questions

0 votes
1 answer 7 views
7 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 5 views
5 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.4k points
0 votes
1 answer 3 views
3 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.4k points
0 votes
2 answers 173 views
173 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 3 views
3 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 13.1k points
0 votes
1 answer 13 views
13 views
Problem : xcode couldn't find any ios app development provisioning profiles matching
asked Feb 28 Shovo210 13.3k points
0 votes
1 answer 288 views
288 views
Problem : Currently I am learning Ionic I have recently created the ionic 2 project and also added the diagnostic cordova plugin as below: ionic plugin add cordova.plugins.diagnostic npm install --save @ionic-native/diagnostic and after that added the android platform as ... system to install the gradle wrapper. Please include gradle in your path, or install Android Studio How to fix above error?
asked Feb 26, 2020 mphil 2.3k points
0 votes
1 answer 61 views
61 views
Problem: no target specified and no devices found, deploying to emulator.
asked Feb 21 charles mathews 5.5k points
1 vote
2 answers 586 views
586 views
Problem : I am very new to Ionic, I have recently started working on Ionic but I am facing below error: Runtime Error Uncaught (in promise): Error: Module build failed: Error: ENOENT: no such file or directory, open '/Users/stewart/Development/ionic/theWhoZoo/src/pages ... say they do match. import { MyRatingModel } from '../model/myratingModel'; How can I fix above error need Ionic expert help.
asked Apr 22, 2020 stewart 4k points
0 votes
1 answer 5 views
5 views
Problem: anyone who know this problem please help? failed to find build tools revision 23.0.1
asked Mar 25 Rohit kr 15.5k points