androidandroid-studioandroid-7.0-nougatplatform-tools

The SDK platform-tools version (24.0.4) is too old to check APIs compiled with API 25; please update


I am getting this error on the latest version of Android Studio and while I have installed both Android SDK Platform API 25 and Android SDK Build-Tools 25.


Solution

  • I had a similar problem. Updating Android Studio to version 2.2.2 (latest at the time of this writing) and Gradle version to 2.2.2 (latest at the time of this writing) in project_name/build.gradle file fixed this issue.

    For reference, this is my config in project_name/app/build.gradle file:

    minSdkVersion = 19
    targetSdkVersion = 25
    compileSdkVersion = 25
    buildToolsVersion = "25"
    supportLibraryVersion = "25.0.0"
    

    And this is my dependencies in project_name/build.gradle file :

    buildscript {
    
        repositories {
            jcenter()
        }
    
        dependencies {
            classpath 'com.android.tools.build:gradle:2.2.2'
            // NOTE: Do not place your application dependencies here; they belong
           // in the individual module build.gradle files
        }
    }