[RK3588][Android12] Android->OTA包超过4个G导致打包失败

测试平台

Platform: RK3588
OS: Android12


问题说明:

有的客户需要往系统中内置大量apk,这样就导致最终打包的OTA包超过4个G,从而导致打包OTA的时候报错:Zipfile size would require ZIP64 extensions


解决方法:

可能是python版本限制导致,比如:3588-12中默认python版本是2.7.12
需要切换到python3.xx
使用命令:
update-alternatives --list python
可以查看当前SDK都有哪些版本的 python
使用命令:
update-alternatives --config python
输入对应版本的指令值(0、1 、2)来切换对应版本
然后切换至更高版本的python,再测试打包ota包是否正常

python --version 可以查看当前SDK使用的 python 版本

使用命令:
apt install python2.7
apt install python3.10
apt install python3.8.9
安装指定版本 python


安装更新python版本并将默认版本切换到3.xx以后,再打包就不会报错了。

相关推荐
huwuhang11 小时前
Winkawaks街机游戏模拟器整合ROM版 1.65 汉化修正完整版 2026.03.30
android·游戏·游戏机
yitian_hm11 小时前
MySQL主从复制与读写分离实战指南
android·mysql·adb
NEGl DRYN11 小时前
Plugin ‘mysql_native_password‘ is not loaded`
android·数据库·mysql
Derrick__112 小时前
Android混淆和加密技术
android·jvm·python
sunwenjian88613 小时前
MySQL加减间隔时间函数DATE_ADD和DATE_SUB的详解
android·数据库·mysql
ictI CABL13 小时前
MySQL Workbench菜单汉化为中文
android·数据库·mysql
放学以后Nicetry15 小时前
Android SELinux 指南:从基本概念到实战修复
android
CCIE-Yasuo15 小时前
《永恒战士2-无双战神》无限金币版(提供apk下载)安卓Android逆向记录学习-Deepseek-AI辅助
android·java·学习·游戏
jzlhll12316 小时前
kotlin flow去重distinctUntilChanged vs distinctUntilChangedBy
android·开发语言·kotlin
渡我白衣16 小时前
【MySQL基础】(3):MySQL库与表的操作
android·数据库·人工智能·深度学习·神经网络·mysql·adb