cocos2d-x V3.15 version update instructions

specific list 

  • Full support for Android Studio, including compiling, code editing and debugging C++ code: use documentation
  • The audio module uses tremolo and MP3 Decoder Library to decode audio files on the Android platform, making the audio module more efficient and compatible with more Android devices
  • WebSockets and SocketIO support SSL
  • AssetsManagerEx is more stable
  • Update Spine runtime to v3.5.35
  • Update flatbuffer to v1.5
  • Upgrade OpenSSL to v1.1.0
  • Remove support for Windows 8.1
  • Remove 32-bit linux support

 

new version features  

Full support for Android Studio

Starting from version 3.15, you can use Android Studio 2.3+ to edit, compile and debug C++ code. Just open the proj.android-studio folder (such as tests/cpp-empty-test/proj.android-studio ) through Android Studio, and then click the run button to run and debug on the Android device or emulator.

Improvement of audio module on Android platform

Before version 3.15, the audio module uses OpenSL ES to decode and play audio files, but many Android device manufacturers will modify this part of the code, resulting in compatibility issues for the audio module on different Android devices. This post lists issues with many audio modules.

In order to solve the compatibility problem, we introduced the third-party decoding library tremolo and MP3 Decoder Library. This decoding library is also the decoding library used by the Android source code. Using this decoding library can not only solve the compatibility problem of Android devices, but also bring a lot of performance improvements:

0

The introduction of this decoding library will increase the final APK package by about 100K, which is worthwhile compared with the benefits.

Remove support for Windows 8.1

Windows 8.1 support has been maintained by Microsoft developers. Because of market share, Microsoft feels that it is unnecessary to continue to support Windows 8.1.

Remove 32-bit linux support

目前大部分的PC都是64位了,所以我们觉得去除对32位linux的支持。去除这个支持意味着第三方库去掉了对应的32位版本,这样可以减小发行包的大小,也减少引擎维护的工作。开发者如果想支持32位版本的话,可以使用这个仓库自己编译32位版本的第三方库。

其他

Android SDK Tools 25.3.0+去除了ant脚本和android命令 ,使得cocos命令无法打包Android的Eclipse工程(proj.android)。为了不至于在最后生成APK时才报错,现在cocos命令检查到这个版本后直接返回错误。有两个方法可以解决这个问题:

  • 从旧版本的Android SDK拷贝tools文件夹过来替换对应的目录
  • 使用Android Studio工程编译打包

从Android工具删除ant脚本和android的行为来看,谷歌是不希望大家继续使用Eclipse工程,所以建议大家还是使用Android Studio来编译打包吧。旧版本引擎虽然不支持Android Studio调试C++代码功能,但是编译打包还是没问题的。


源地址:http://www.cocos.com/cocos2dx

更多问题和技术交流欢迎加入QQ群讨论:83459374


Guess you like

Origin blog.csdn.net/u013007305/article/details/71424580