Error:
Error:Execution failed for task ':app:mergeDebugResources'. > Error:
java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException:
After a round of search:
resolvent:
Either make the picture into a dot 9 picture or remove the. 9 in the picture file name;
a friend of mine has this problem because the company’s encryption system encrypts the picture, which leads to the error of as parsing the picture. If the encryption of this kind of graphic file is removed, the problem can also be solved;
the problem can be solved There is also a possibility to see on the Internet: manually change the image and other kinds of mistakes. For example, if the image was originally in JPG format and then forced to change to PNG, there may be problems. Just change it back to the original format.
Remove the PNG legitimacy test, in the build.gradle Add the following two sentences under build tools version in
android {
......
aaptOptions.cruncherEnabled = false
aaptOptions.useNewCruncher = false
......
}
The reason for the error is: Android studio strictly reviews PNG images, that is, PNG does not meet the requirements of Android studio
The above two sentences probably mean
forbid gradle to check the legitimacy of PNG
note: the most important thing is that. 9 diagram should be done strictly
The “. 9” image is a special image form in the application software development of Android platform. The file extension is. 9. PNG. In other words, in the project resource folder, as long as the file suffix of the image is. 9. PNG, it means that it is a point 9 image. When we compile with eclipse, it encounters a file with the file suffix of. 9. PNG. First check whether it is actually a point 9 image If it is, it will be processed according to the point 9 image; if not, it will be processed according to the default image. That is to say, eclipse automatically helps us complete the transformation and tolerates our image format errors.
Android Studio uses the Android Maven plugin plug-in. The reason for the error reported in android studio is that the file declared as the point 9 image is not actually the real point 9 image, and there is an error in parsing the image. Android Maven plugin will strictly check the image format, and report an error if it does not match.