shwenzhang / AndResGuard

proguard resource for Android by wechat team
Apache License 2.0
8.49k stars 1.53k forks source link

Debug 和 Release 打的包不一样呢? #504

Open firsthubgit opened 2 years ago

firsthubgit commented 2 years ago

gradle-6.7.1-bin
classpath "com.android.tools.build:gradle:4.2.1"

image

这个Debug包


image

这个是Release包

并且release包打不开。。。两个配置是一样的啊,这是为什么 都是 keepRoot = false

修改了fixedResName = ”gra“ 这个可以生效

firsthubgit commented 2 years ago

keepRoot 改成true以后,只有打debug包生效了, release包没生效

image image
firsthubgit commented 2 years ago

参考: https://github.com/shwenzhang/AndResGuard/issues/466#issuecomment-850743552 解决了 Addandroid.enableResourceOptimizations=falsein gradle.properties can disable ResourceOptimizations, then you can use AndResGurad.