tinker icon indicating copy to clipboard operation
tinker copied to clipboard

xml修改没有生成差异

Open ingxin opened this issue 2 years ago • 2 comments

命令行接入,输出日志部分如下 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 avatar Nov 29 '22 03:11 ingxin

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

ingxin avatar Nov 29 '22 03:11 ingxin

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

NiuGuohui avatar Jan 09 '23 01:01 NiuGuohui