【问题标题】:How to change Platform-TOOLs如何更改平台工具
【发布时间】:2017-11-28 13:37:02
【问题描述】:

我正在使用 Android Studio 构建一个应用。 这是我的大文件:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 26
    buildToolsVersion "26.0.1"

    defaultConfig {
        applicationId "com.mcsolution.easymanagementandroid"
        minSdkVersion 16
        targetSdkVersion 26
        versionCode 1
        versionName "1.0"
        vectorDrawables.useSupportLibrary = true
        multiDexEnabled = true
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_7
        targetCompatibility JavaVersion.VERSION_1_7
    }

}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:25.0.0'
    compile files('libs/gson-2.2.4.jar')
    compile 'com.itextpdf:itextg:5.5.9'
    compile 'com.android.support:cardview-v7:25.0.0'
}

如果我尝试启动我的应用程序,我可以毫无问题地使用它。 如果我尝试打开所有 view.xml 文件,则会出现此错误:

The SDK Platform-TOOLs version (23.1) is too old to check APIs compiled with API 26; please update more....

如何更改平台工具并解决我的问题?

【问题讨论】:

标签: android


【解决方案1】:
  1. 打开 SDK 管理器
  2. 进入系统设置> Android SDK
  3. 转到 SDK 工具选项卡
  4. 您会发现 Android SDK 平台-工具 23.1,并且您会发现可用的更新
  5. 更新一下

正如link 中也报道的那样

【讨论】:

    猜你喜欢
    • 2021-10-24
    • 2021-06-28
    • 2023-03-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-10-16
    • 1970-01-01
    相关资源
    最近更新 更多