2.4.6打包apk后,无法在安卓版本26以下的手机安装

  • Creator 版本: 2.4.6

  • 目标平台: Android

  • 之前哪个版本是正常的: 2.4.4

Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 26 declared in library [:libcocos2dx] D:\APP\CocosCreator\Creator\2.4.6\resources\cocos2d-x\cocos\platform\android\libcocos2dx\build\intermediates\library_manifest\release\AndroidManifest.xml as the library might be using APIs not available in 21
Suggestion: use a compatible library with a minSdk of at most 21,
or increase this project’s minSdk version to at least 26,
or use tools:overrideLibrary=“org.cocos2dx.lib” to force usage (may lead to runtime failures)

cocos编辑器目录下的这个文件,会在每次打包的时候自动修改最低版本为26,所以无法通过手动修改进行打包

1赞

测试没有出现你说的这种自动修改的现象,麻烦确认是不是修改了 gradle.properties 文件,或者AndroidManifest.xml

是这边漏改了一个minSdk版本,不是bug :2:

该主题在最后一个回复创建后14天后自动关闭。不再允许新的回复。