【发布时间】: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