Why can't I use low version buildTools?

When I use 25.0.0, some error appears in my project (the floating action button is not displayed). But I can choose the low version.

Error. Editing the SDK assembly tools (24.0.3) is too small for the ': app' project. The minimum value is 25.0.0

+5
source share
3 answers

change classpath 'com.android.tools.build: gradle: +' classpath 'com.android.tools.build:gradle:2.2.2' and now I can use 24.0.3

+1
source

I would suggest that you have a build.gradle file that defines buildToolsVersion "25.0.0" . But you have only version 24.0.3 installed.

Either upgrade your build tools by installing a newer version using Tools/Android/SDK Manager/SDK Tools , or by changing the requirements for the build.gradle application file to require the version you have (24.0.3).

0
source

Make sure your compileSdkVersion does not match your buildToolsVersion . What I do in my project, I map compileSdkVersion and buildToolsVersion . Looks like this.

 compileSdkVersion 24 buildToolsVersion '24.0.2' defaultConfig { minSdkVersion 19 targetSdkVersion 24 versionCode 1 versionName "1.0" } 

In addition, you can always check for updates in the SDK Manager in Android Studio.

Please take a look at this as well. What is buildToolsVersion for Android SDK 24?

Hooray!

0
source

Source: https://habr.com/ru/post/1260180/


All Articles