Overview of Android development issues

Source: Internet
Author: User

  1. 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!!!!

  2. 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.

  3. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.