Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Android Studio Error - Unable to open PNG file

Error Image

I am getting the error that is pictured above when I try to build my project in Android Studio.

The file that is mentioned in the error does not exist in that folder. I tried to delete the entire folder hoping it would re-download the needed file. It did re-download the folder but again it did not have that file.

I am not using this file anywhere in my project and as far as I know.

Any help would be greatly appreciated.

Thanks.

like image 213
FidelCashflo Avatar asked Dec 25 '22 14:12

FidelCashflo


1 Answers

Maybe the path of file is too long that it is unable to process it. In my case, it was:

C:\Users\ber$erk-kAjU\Downloads\Compressed\android-xmpp-asmack-sample-master\android-xmpp-asmack-sample-master\XMPPAsmackSample\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-ldrtl-xxhdp

As you can see, it is huge! I just moved my project to another path, and reduced it to:

D:\AndroidStudioWorkspace\XMPPAsmackSample\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-ldrtl-xxhdp

Maybe this can help!

like image 73
berserk Avatar answered Dec 30 '22 16:12

berserk