Android的工作室错误:org.gradle.process.internal.ExecException [英] Android Studio Error: org.gradle.process.internal.ExecException

查看:1311
本文介绍了Android的工作室错误:org.gradle.process.internal.ExecException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新android开发,并打了我的第一个错误,并似乎无法避开它。我已经下载并在我的Mac安装Android的工作室和java和做了一个假的应用程序,只是为了看看它在模拟器中运行。默认的Hello World应用程序运行正常,但只要我.png文件添加到我绘制文件夹中,我得到这个错误:

I am new to android development and have hit my first error and can't seem to get around it. I have downloaded and installed android studio and java on my mac and a made a dummy app just to see it run in the simulator. The default hello world app runs fine but as soon as I add a .png file 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

我几件事情提的还有,我只能检测到一个绘制文件夹,而不是正常的绘制,华电国际,MDPI,等我在很多教程看到的。

I few things to mention are that I only see one drawable folder, not the normal drawable-hdpi,mdpi, etc that I see in many tutorials.

鸭preciate的帮助。

Appreciate the help.

推荐答案

嗯,我想通了这个问题。

Well I figured out the problem..

有一次,我改变了巴纽回原来的JPEG格式扩展我的应用程序运行得很好。我想更改扩展到图像文件时,AS是挑剔。奇虽然当我把它改为png格式,然后观察它的信息,它说,这确实是一个便携式网络图形所以这就是为什么我很困惑。如果有人能阐明什么是怎么回事一些光,这将是巨大的。我认为图像文件是JPEG格式一直以来,这就是为什么它是给我不是PNG。

Once I changed the .png back to a its original .jpeg extension my app ran fine. I guess AS is picky when changing the extension to the image files. Odd though when I changed it to .png and then viewed its info, it said it was indeed a portable network graphic so that is why I was confused. If someone could shed some light on what is going on here that would be great. I think the image file was a .jpeg all along that is why it was giving me "Not a PNG".

干杯

这篇关于Android的工作室错误:org.gradle.process.internal.ExecException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆