热更新的问题

来源:10-5 基于构建技术理解热修复原理

xxxxjase普通

2021-08-13


相关截图:

http://img.mukewang.com/szimg/6115be19086eea2d03600780.jpg

Api 21 以后,应用安装后系统 AOT 优化,会合并 dex 那这里是不会有多个 dex 吧。???

写回答

1回答

allenfeng

2021-08-13

你的理解是对的。

Multidex support for Android 5.0 and higher

Android 5.0 (API level 21) and higher uses a runtime called ART which natively supports loading multiple DEX files from APK files. ART performs pre-compilation at app install time which scans for classesN.dex files and compiles them into a single .oat file for execution by the Android device. 

参考 MultiDex

此处为了方便理解热修复原理,还是作为有多个元素的数组来讲解。


1
0

Android 应用程序构建实战+原理精讲

深度掌握 Gradle 使用,系统性学习 Android 应用构建知识

450 学习 · 116 问题

查看课程