Phoenix Dev
Phoenix Dev

Reputation: 457

Android Studio build tools not found error

Everything works as expected when creating a new project in android studio but when an already existing project is imported, error

"No installed build tools found. Please install version 19.0.1 or higher"

is shown. I have set the environment variables correctly. What could be wrong?

Upvotes: 1

Views: 3280

Answers (1)

Khemraj Sharma
Khemraj Sharma

Reputation: 58934

You have two options:

  1. Either install the required buildToolVersion. (In your case 19.0.1).

    You can just press on button Install. Which appear with this error.

  2. Or if you don't want to collect bunch of buildToolVersion. Then use one already existing in your sdk.

    In this case you will follow these steps.

(1) First find existing buildToolVersion. Either find in your old project app level build.gradle or you can see that in sdkFolder>build-tools. In my case it is E:\Khemraj\AndroidDND\Sdk\build-tools

(2) Then replace buildToolVersion in app level build.gradle with already installed build-Tool.

(3) You have to reopen that project. (Because just sync does not work in this case for now (Possibly a bug of Android Studio))

Things to be considered

  • Offline mode should be disabled in case of installing new build-tool. (File>Setting>Search for offline). Disable Offline mode.
  • Make sure to reopen project if you change buildToolVersion.

Upvotes: 2

Related Questions