Meituan-Dianping / Robust

Robust is an Android HotFix solution with high compatibility and high stability. Robust can fix bugs immediately without a reboot.
Apache License 2.0
4.4k stars 804 forks source link

Android R系统上,安装异常 #422

Open luobosu opened 3 years ago

luobosu commented 3 years ago

异常类型:Android R系统上,安装异常

手机型号:不便提供

手机系统版本:11.0

Robust版本:如:0.4.99

Gradle版本:如:4.0.0 系统:如:Windows

堆栈/日志: 将robust插桩的plugin与应用程序一起编译运行时,可以正常出包,在Android Q系统上安装正常;但是在Android R系统上安装失败: Failed to install xxxxxxxx.apk: Failure [-12 4: Failed parse during installPackageLI: Targeting R+ (version 30 and above) req uires the resources.arsc of installed APKs to be stored uncompressed and aligned on a 4-byte boundary]

使用zipalign指令執行如下: $ zipalign -c -v 4 x.apk | grep 'arsc' 10079368 resources.arsc (OK - compressed)

想确认框架中是否存在将resources.arsc进行压缩的逻辑。

GainLee commented 3 years ago

我提交了一个修复,等待官方合入。遇到这个问题的可以把gradle版本降到3.5.0以下临时解决。