How to find out what my system is available Gradle buildToolsVersion

This problem occurs when my Android Studio project is copied by others, but they cannot start it directly.
Error message failed to find build tools versions XX.XX
Then how do they know which version should be changed for their own system?
Or is there a better way to set buildToolsVersion "XX.XX" so that it generally matches the others in build.gradle ?
Also the same question for compileSdkVersion , how do I find out the versions available on my system?
Is there a gradle (unlimited) script to find out the current version?

+5
source share
2 answers

Take a look at your build.gradle (Module:<app-name>) file. This file should contain the line buildToolsVersion . Make sure you and others have this version of the build tools installed.

Also make sure that the build tools version is still available from the SDK manager.

I had this problem while working on a project for friends. He used a version of the building tools that I could no longer get. I think this is because things are being updated and replaced.

We fixed this by installing the latest build tools.

I also ran into this problem when I updated Android Studios and the build tools version was no longer available.

For compileSdkVersion you can go Tools > Android > SDK Manager . This will compileSdkVersion up a window that allows you to manage your compileSdkVersion and your buildToolsVersion .

You can also select the link in the lower left corner (Launch Standalone SDK Manager), this will give you a little more information.

+2
source

You can check the available versions from the official Android developer link: https://developer.android.com/studio/releases/build-tools.html

Then select the appropriate version (usually the latest) based on your compileSdkVersion and targetSdkVersion

+1
source

All Articles