Reputation: 457
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
Reputation: 58934
You have two options:
Either install the required buildToolVersion
. (In your case 19.0.1).
You can just press on button Install
. Which appear with this error.
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
buildToolVersion
.Upvotes: 2