"The specified Android SDK Build Tools version (26.0.0) is ignored..."

AndroidAndroid StudioGradleAndroid Gradle-Plugin

Android Problem Overview

In Android Studio 3, I'm seeing this issue:

> The specified Android SDK Build Tools version (26.0.0) is ignored, as > it is below the minimum supported version (26.0.2) for Android Gradle > Plugin 3.0.0. > > Android SDK Build Tools 26.0.2 will be used. > > To suppress this warning, remove "buildToolsVersion '26.0.0'" from > your build.gradle file, as each version of the Android Gradle Plugin > now has a default version of the build tools.

The problem is that because these are third-party/vendor modules that have buildToolsVersion '26.0.0', I can't modify their build.gradle without forking each submodule.

Is there a way to set a global buildToolsVersion that will override all the sub build.gradles?

Android Solutions

Solution 1 - Android

Here if you are referring to my previous answers Here is an Update.

  1. Compile would be removed from the dependencies after 2018.

a new version build Gradle is available.

enter image description here

Use the above-noted stuff it will help you to resolve the errors. It is needed for the developers who are working after March 2018. Also, maven update might be needed. All above answers will not work on the Android Studio 3.1. Hence Above code block is needed to be changed if you are using 3.1. See also I replaced compile by implementation.

Solution 2 - Android

Open app/build.gradle file

Change buildToolsVersion to buildToolsVersion "26.0.2"

change compile 'com.android.support:appcompat to compile 'com.android.support:appcompat-v7:26.0.2'

Solution 3 - Android

Solution to this problem is simple

Go to build.gradle (module.app) file

Change the Build Version for app as shown in the photo link

It will help us to rebuild gradle for the project, to make it sync again.

Solution 4 - Android

Update to Android Studio 3.0.1 which treats these as warnings. Android 3.0 was treating such warnings as errors and hence causing the gradle sync operation to fail.

Solution 5 - Android

Set the buildToolsVersion '26.0.2' then change classpath 'com.android.tools.build:gradle:3.0.1'.

Make sure you set compileSdkVersion to 26 whiles targetSdkVersion is also set 26.

It is also appropriate to sent set compile 'com.android.support:appcompat-v7:26.0.2'.

Solution 6 - Android

just clean and make project / rebuilt fixed my issue give a try :-)

Solution 7 - Android

invalidate cache in android studio will resolve this issue. Go to file-> click on invalidate cache/restart option.

Solution 8 - Android

Many times as API's are updated. We forgot to update SDK Managers. For accessing recent API's one should always have highest API Level updated if possible should also have other regularly used lower level APIs to accommodate backward compatibility.
Go to build.gradle (module.app) file change compileSdkVersion buildToolsVersion targetSdkVersion, all should have the highest level of API.


All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionSnowmanView Question on Stackoverflow
Solution 1 - AndroidRahul JoshiView Answer on Stackoverflow
Solution 2 - AndroidhindawisyrView Answer on Stackoverflow
Solution 3 - AndroidRahul JoshiView Answer on Stackoverflow
Solution 4 - AndroidVarun BhatiaView Answer on Stackoverflow
Solution 5 - AndroidLee ChuView Answer on Stackoverflow
Solution 6 - AndroidJasbin karkiView Answer on Stackoverflow
Solution 7 - AndroidShreeView Answer on Stackoverflow
Solution 8 - AndroidRahul JoshiView Answer on Stackoverflow