问题
- 编译的时候报错Error:Execution failed for task
‘:?app:processDebugResources’.>
com.android.ide.common.process.ProcessException:
org.gradle.process.internal.ExecException: Process ‘command
‘D:\dev\AndroidStudio2.1.3\sdk\build-tools\24.0.0\aapt.exe” finished
with non-zero exit value 1
愿因
classpath 'com.android.tools.build:gradle:2.1.0'
gradle2.1.0的时候可能会有android库兼容的问题,
解决办法
所以后面发现根据报错的指示在build.gradle中加上 //noinspection GradleCompatible,就可以兼容编译解决此问题
“`
dependencies {
compile fileTree(include: [‘*.jar’], dir: ‘libs’)
testCompile ‘junit:junit:4.12’
//noinspection GradleCompatible
compile ‘com.android.support:appcompat-v7:23.4.0’
//noinspection GradleCompatible
compile ‘com.android.support:design:23.4.0’
//noinspection GradleCompatible
compile ‘com.android.support:recyclerview-v7:23.4.0’
compile ‘com.squareup.picasso:picasso:2.5.2’
compile ‘org.jetbrains:annotations-java5:15.0’
compile ‘org.apache.httpcomponents:httpcore:4.4.4’
//noinspection GradleCompatible
compile ‘com.android.support:support-v4:23.3.0’
compile ‘com.instabug.library:instabug:2+’
compile ‘com.umeng.analytics:analytics:latest.integration’
compile ‘org.jsoup:jsoup:1.9.2’
}
大概就是这样:)