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 of encountering a lot of strange mistakes, now say the error I encountered today.

The artist gave me a picture, used as a button background map, of course, this diagram can also be placed directly into the ImageView add Click event Method also line, here does not discuss this, the name of the picture is: eweima.png

Note here, the artwork to my picture, I did not change, then, began to take the careless to use. Put the picture below the mipmap-hdpi directory, which will show a picture of eweima.png in addition to the default ic_launcher.png, at this time , began to write ImageView, not much to repeat.

If you take a closer look, you will find that there is a light-coloured wavy line underneath the Eweima, so don't worry, run.

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

, the difference between PNG and JPG two styles I don't know much, but you can see the difference by clicking on the image in as and opening it. Now, run it again.

Well, out of this kind of thing represents already installed successfully. The problem is solved perfectly.

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

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.