Java – Android studio error: org gradle. process. internal. ExecException

I'm a novice in Android development, and I encountered my first mistake, which seems to be unsolvable I have downloaded and installed Android studio and Java on my Mac and a virtual application, just see it running in the simulator The default Hello world application works normally, but once I get it PNG file is added to my drawable folder. I get this error:

Error:Error: com.android.ide.common.process.ProcessException:    org.gradle.process.internal.ExecException: Process 'command '/Users/billy/Library/Android/sdk/build-tools/21.1.2/aapt'' finished with non-zero exit value 42

What I hardly mentioned is that I only see a drawable folder instead of the ordinary drawable hdpi, MDPI, etc. I see in many tutorials

Appreciate help

Solution

Well, I came up with this question

Once I will Png changed to the original JPEG extension, my application works normally I think as is picky when changing the extension of image files Strangely, when I changed it to Png, and then looked at its information. It said that it was indeed a portable network graphics, so that's why I was confused It would be great if someone could understand what happened here I think the image file is a JPEG, that's why it gives me "not PNG"

Cheers!

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>