An error occurred while changing images and other resource files.
For example, I haven't done any UI-related applications for a long time, and I almost forgot how to deal with the UI-related problems. Make a note here, and you have to check the information everywhere when the province goes wrong. When an error occurs in a resource file or resource file such as an image, the following error occurs:
Error: Execution failed for task': app: mergeDebugResources '.
> Error: java. util. concurrent. ExecutionException: com. android. ide. common. process. ProcessException :.
Solution:
1. Exclude compilation errors first. Xml and other files may have errors, so correct them.
2.image resource error: I replaced ic_launcher.png with the reported error. I directly set it in the build. gradle file and do not check it. As shown in red ):
apply plugin: 'com.android.application'android { compileSdkVersion 26 buildToolsVersion "27.0.3" aaptOptions.cruncherEnabled = false aaptOptions.useNewCruncher = false defaultConfig { applicationId "com.demo" minSdkVersion 16 targetSdkVersion 21 versionCode 1 versionName "1.0" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" } buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } }}