cocos2dx google升级libpng

收到一份谷歌的邮件

Hello Google Play Developer,

We detected that your app(s) listed at the end of this email are using an unsafe version of the libpng library. Apps with vulnerabilities like this can expose users to risk of compromise and may be considered in violation of our Malicious Behavior policy.

What’s happening

Beginning September 17, 2016, Google Play will block publishing of any new apps or updates that use vulnerable versions of libpng. Your published APK version will not be affected, however any updates to the app will be blocked unless you address this vulnerability.

Action required: Migrate your app(s) to use libpng v1.0.66, v.1.2.56, v.1.4.19, v1.5.26 or higher as soon as possible and increment the version number of the upgraded APK.

更新方法

1、下载libpng文件目录:“cocos2dx\platform\third_party\android\prebuilt”

     下载地址:http://pan.baidu.com/s/1slhAznv

2、修改“cocos2dx” 目录下的 “Android.mk” 文件

   修改内容:

            原内容:LOCAL_WHOLE_STATIC_LIBRARIES := cocos_libpng_static

           修改为:

                      LOCAL_WHOLE_STATIC_LIBRARIES := cocos_libzlib_static

                       LOCAL_WHOLE_STATIC_LIBRARIES += cocos_libpng_static

           原内容::$(call import-module,libpng)

           修改为: 

                      $(call import-module,libzlib)

                     $(call import-module,libpng)

3、重新编译so文件即可


猜你喜欢

转载自blog.csdn.net/qingzijin2010/article/details/52037723