Several common bug fixes for Android studio

Source: Internet
Author: User

I also transferred from the EC to as, there is no way, the general trend, however, in the use of as in the process encountered a lot of strange mistakes, now say the mistake I encountered today.

The artist gave me a picture, used as a button of the background, of course, this diagram can also be directly placed in the ImageView to join the Click event method is also OK, this is not discussed here, the name of the picture is: eweima.png

Note here, the artwork to my picture, I did not modify, then, began to take the careless use of. Put the picture in the mipmap-hdpi folder below, this will show inside except the default Ic_launcher.png more than a eweima.png picture, At this time, began to write ImageView, not much to repeat.

Here is the assumption that a careful look will find that eweima below a light-colored small wavy line, do not worry, do it.

At that time a look, must be crazy, what app:processdebugresources something ... And then Aapt.exe ... This is certainly not the side of the thriller, in fact, don't worry, at this time, because I have experienced this error, so, my side just need to do is to change the eweima.png to Eweima.jpg

, the difference between PNG and JPG two styles I know not much, just can through in as inside click the picture, open can see out of their differences. Now, execute again.

Well, something like that has been installed successfully. The problem is solved perfectly.

Several common bug fixes for Android studio

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.