Android Studio Error: org.gradle.process.internal.ExecException

后端 未结 3 464
一整个雨季
一整个雨季 2020-12-17 22:23

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

相关标签:
3条回答
  • 2020-12-17 22:59

    In linux systems, there may be issue with 32 bit lib files in 64 bit systems, I also got the same problem and is solved by installing these libs by following command -

    yum install glibc.i686 glibc-devel.i686 libstdc++.i686 zlib-devel.i686 ncurses-devel.i686 libX11-devel.i686 libXrender.i686 libXrandr.i686
    
    0 讨论(0)
  • 2020-12-17 23:06

    Well I figured out the problem..

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

    Cheers

    0 讨论(0)
  • 2020-12-17 23:10

    This can happen when gradle fails to process resources. In your case it happened to be an invalid image file in the drawable folder, in my case it was an error in one of my XML layouts that Android Studio didn't pick up on

    0 讨论(0)
提交回复
热议问题