libPNG conflict between UE4 and OpenCV

Hi everyone. I’m struggling with this problem: I need OpenCV libraries for developing my Android project. OpenCV provides libPNG-1.6.24 which conflicts with the libPNG provided by UE4. Seems that without libPNG-1.6.24 OpenCV doesn’t work at all (crashes without any kind of error) and if I include it by plug in, it throws an assertion error on png_ptr. So I’m wondering if there is a way of upgrading the UE4 version of libPNG to the version 1.6.24. I’ve heard about using UE4_BuildThirdPartyLib.bat and BuildForAndroid.bat but I didn’t figure out how to use them.

If there is someone who can help me, Thank You very much

Did you ever figure this out?