shwenzhang / AndResGuard

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

android studio Arctic Fox最新版没效果 #497

Open ucxl opened 2 years ago

ucxl commented 2 years ago

集成了最新版的AndResGuard,打包也没报错,查看apk文件并没有混淆,gradle版本671

ProgressiveDevelop commented 2 years ago

我也是,打包后运行不了了。原来都一直用着得,今天打包后不能运行了,就是升级了gradle

ucxl commented 2 years ago

我直接用命令解决了,r8打包不混淆资源文件,打出来apk文件 然后用 java -jar AndResGuard-core-1.2.21.jar搞定了

ucxl commented 2 years ago

如果能用android studio一次性解决多好

zhangjingex commented 2 years ago

如果能用android studio一次性解决多好

你是没有用resguard命令打包吧,用的assemble?

zhangjingex commented 2 years ago

我也是,打包后运行不了了。原来都一直用着得,今天打包后不能运行了,就是升级了gradle

AndResGuard现在不支持gradle插件版本4.1.2以上的

Aicent commented 2 years ago

4.2以上在gradle.properties添加 android.enableResourceOptimizations=false 参考 https://github.com/shwenzhang/AndResGuard/issues/466#issuecomment-850743552

SudoDios commented 2 years ago

The option setting 'android.enableResourceOptimizations=false' is deprecated.

ucxl commented 2 years ago

解决了,感谢