Tencent / tinker

Tinker is a hot-fix solution library for Android, it supports dex, library and resources update without reinstall apk.
Other
17.15k stars 3.34k forks source link

xml修改没有生成差异 #1698

Open ingxin opened 1 year ago

ingxin commented 1 year ago

命令行接入,输出日志部分如下 Check for loader classes in dex: classes2.dex Collect class descriptors in classes2.dex Found modify resource: res/-o.xml Found modify resource: res/-Y.xml Found modify resource: res/1N.xml Found modify resource: res/30.xml Found modify resource: res/38.xml Found modify resource: res/43.xml Found modify resource: res/4G.xml Found modify resource: res/5A.xml Found modify resource: res/65.xml Found modify resource: res/66.xml

其中66.xml是我修改了被识别出来了,但同目录下R5.xml却没有被识别出被修改, 我R5.xml增加了两个button。 这个是需要额外配置吗?

ingxin commented 1 year ago

打包时关闭资源压缩就能正常识别出差异, 临时解决办法就是设置关闭资源压缩,android.enableResourceOptimizations=false 但这个属性AGP8将会移除,也只能管短期。 不知道是不是tinker的bug,还是配置问题,希望能有个长期有效的解决方案

NiuGuohui commented 1 year ago

同样遇到了这个问题,而且我这儿还出现了资源重名的情况