failed to read PNG signature: file does not start with PNG signature.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
原因:原图片可能jpg格式的图片,通过更改后缀的方式将jpg转为png后缀
修复方式,用p或是其他软件另存为png图片即可
Perhaps it's not actually a PNG, but a JPG renamed to PNG. The problem could be because of the wrong extension of images.
In my case, the file was a JPEG image but it was saved as PNG not converted to. In this situation change extension to the real one and convert to PNG then retry.
For instance, you have ic_logo.png but it's actually a JPG image. You should rename it back to ic_logo.jpg and use something like Photoshop to convert the image to PNG format. ———————————————— 参考链接:https://stackoverflow.com/questions/46177560/failed-to-read-png-signature-file- does-not-start-with-png-signature
Lint found fatal errors while assembling a release target.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
Lint found fatal errors while assembling a release target. To proceed, either fix the issues identified by lint, or modify your build script as follows: ... android { lintOptions { checkReleaseBuilds false // Or, if you prefer, you can continue to check for errors in release builds, // but continue the build even when errors are found: abortOnError false } } 修复:根据 项目目录下app/build/reports/lint-results-release-fatal.html 文件 这个文件就详细描述了release时lint检测到的比较严重的结果然后逐一进行修复即可 ———————————————— 参考链接:https://blog.csdn.net/aiynmimi/article/details/89401239
Duplicate class com.tencent.ijk.media.exo.BuildConfig found in modules
I had the same problem. my problem has occurred because I just had used images (icons) in the "drawable-v24" folder. I solved it by copying them into "drawable" folder ———————————————— 参考链接:https://stackoverflow.com/questions/16698313/error-inflating-class-imageview