1
votes

I'm trying to build for Android but without Android Studio. I did the necessary procedures, I downloaded sdkmanager, gradle but when I run the command ionic cordova build android. I get the following error:

  • 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.

But I already installed sdkmanager, when I run the command sdkmanager --list I have the following output:

output

And I see that Android SDK tools is already installed in version 26.1.1, thanks any help.

2
can you please remove the platform android and add it again and try to build the project again.Hiten
Ok I'll try thisGeekSilva
I'm getting the same error :(GeekSilva
In you screen shot I see tools but I don't see android sdk build-tools , you need to install that one tooReza
you need to download build tools for specific version and set ANDROID_HOME too.Hiten

2 Answers

1
votes

You need to download build tools for specific android version and set ANDROID_HOME too. And then try to build again.

0
votes

Thanks to @Hiten and @RezaRahmati, I was able to solve my problem. My sdk folder was without the build-tools subdirectory. I ran the following command with sdkmanager: sdkmanager "build-tools; 26.0.2" and after I make the command ionic cordova build android. Worked perfectly. Thanks so much!