execution failed for task ': Mergedebugresources '
Error 2:execution failed for task ': Mergedebugresources '.
> error: failed to run command:
d:\soft_dev\android-sdk-windows\android-sdk-windows\build-tools\19.1.0\a
apt.exe s -i E:\AWORKSPACE\NEWWORKSPACE\VIPONETOONEGRADLETEST\RES\DRAWABLE-XHDPI
\white.png -o e:\aworkspace\ Newworkspace\viponetoonegradletest\build\intermediat
Es\res\debug\drawable-xhdpi-v4\white.png
Error code:
42
Output:
libpng error: not a png file
Resolution: Is this time feeling very confused, wrong, right, Let's tell you what's going on and how it went wrong. The
error is simple but difficult to detect, the reason is that in this picture, why is the picture, At the beginning of your picture is not in. jpg format, however you changed the suffix to. png thought it would be OK, actually not, you just changed the format to. png, in fact it is still in. jpg format. To actually convert a picture to a. png format. Just find a picture conversion tool to solve.
Note: When storing pictures, do not change the format of. jpg to. png format, do not be lazy, be sure to convert the format to PNG format picture, otherwise the compilation will not pass. Remember!!!!
Missing One of the key attributes ' Action#name,category#name ' on element
Intent-filter at Androidmanifest.xml:342:13
Output:
res\drawable-xhdpi-v4\white.png:0: Error:resource entry White is alread
Y defined.
RES\DRAWABLE-XHDPI-V4\WHITE.JPG:0: originally defined here.
Ce\newworkspace\vi
Illegal characters: \65279
Solve:
Since Java files are saved in the form of Utf-8-bom, there is no need to be fastidious about why this is the case, and you can see it by opening the file EditPlus. Then save it as a utf-8 form. Replace the modified file with the error file in the project, and the errors will be solved.
Failure:build failed with an exception.
* What went wrong:execution failed for task ': Lint '.
> Lint found errors in the project; Aborting build.
Fix the issues identified by lint, or add the following to your build script to proceed with errors:
Android {
lintoptions {
Abortonerror false
}
}
Resolution: This error can be solved directly according to the English prompt.
Overview of Android development issues