Error:Execution failed for task ‘:app:processDebugResources’.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
后来试了几次,发现是gradle的配置问题,这个是出现问题的
apply plugin: ‘com.android.application’
android {
compileSdkVersion 26
buildToolsVersion “24.0.3”
defaultConfig {
applicationId “com.baidu.baidulocationdemo”
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName “1.0”
}
lintOptions {
abortOnError false
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
}
sourceSets {
main {
jniLibs.srcDirs = [‘libs’]
}
}
}
dependencies {
compile files(‘libs/BaiduLBS_Android.jar’)
}
直接改成可以用的buildToolsVersion,改成 buildToolsVersion ‘26.0.2’就ok了,原因等有时间在查找