Android Studio Crash (aapt.exe Returns 42) When I Put Png File In Drawable Folder
Solution 1:
This can also happen if you exceed the Windows max path length.
Solution 2:
If 'yesterdays update' refers to Android 5.1 (API 22) then try using the latest version of the build tools. Adjust your build.gradle to use buildToolsVersion "22.0.0"
Solution 3:
In my case, it turned out that the "png" image was really a "psd" image that simply had the wrong extension. I had to convert it to a "png" and then the error went away.
Solution 4:
This can happen when gradle fails to process resources.
In my case it happened to be an invalid image file in the drawable folder, that's why my XML layouts that Android Studio didn't pick up on ... for that solution i am prefer both ways
1>check your extension & convert them .png into .jpeg
2> if that useless then delete from drawable
Solution 5:
Check the image middle.png. if it is an image with format jpg or jpeg,that is the reason.
Post a Comment for "Android Studio Crash (aapt.exe Returns 42) When I Put Png File In Drawable Folder"