小编zed*_*zed的帖子

sdk platform-tools版本(26.0.2)太旧了,无法检查使用API​​ 27编译的API; 请更新

我正在使用IntelliJ Idea Community Edition 2017.2.5并正在构建一个Android应用程序.

我的问题是即使在我的应用程序(Gradle)中我也有:

apply plugin: 'com.android.application'

android {
    compileSdkVersion 27
    buildToolsVersion "27.0.0"
    defaultConfig {
        applicationId "com.app.mtvtr"
        minSdkVersion 21
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}
allprojects {
    repositories {
        jcenter()
        maven {
            url "https://maven.google.com"
        }
    }
}
dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
        exclude group: 'com.android.support', module: 'support-annotations'
    })
    compile 'com.android.support:appcompat-v7:27.0.0'
    compile 'com.android.support:design:27.0.0'
    compile 'com.android.support.constraint:constraint-layout:1.0.0-beta4'
    compile 'com.android.support:support-v4:27.0.0'
    testCompile 'junit:junit:4.12'
} …
Run Code Online (Sandbox Code Playgroud)

sdk android intellij-idea gradle platform-tools

6
推荐指数
1
解决办法
7189
查看次数

标签 统计

android ×1

gradle ×1

intellij-idea ×1

platform-tools ×1

sdk ×1