E:\Studio\Android\sdk\build-tools\26.0.2\aapt.exe’’ finished with non-zero exit value 1
记录一下这个第二次碰到的问题
首先把库的版本都改成一样的,下面的版本也改成一样的
compileSdkVersion 26
buildToolsVersion ‘26.0.1’
defaultConfig {
applicationId “com.wecan.wecanworkapp”
minSdkVersion 19
targetSdkVersion 26
}
最后在android {}加入
configurations.all {
resolutionStrategy.eachDependency { DependencyResolveDetails details ->
def requested = details.requested
if (requested.group == ‘com.android.support’) {
if (!requested.name.startsWith(“multidex”)) {
details.useVersion ‘26.1.0’
}
}
}
}
程序成功运行!