默认情况下,build-》Gene Signed APK 反编译后发现,没有混淆。。。

多次爬stackoverflow才搞定这个问题;

首先 build variants这里由debug设置为release

android studio/Intellij idea之proguard实践

其次,这里runProguarde的false改为true,如果打算使用本目录下的proguard-rules.txt则无需修改下一行指令,使用别的则要做出相应的调整。

android studio/Intellij idea之proguard实践

编辑要排除的内容,在txt中编辑

点这个测试下是否可以执行proguard

android studio/Intellij idea之proguard实践

 

好啦,build-gs apk--》选文件时把这个rules.txt选进去就ok啦!!!

相关文章:

  • 2022-12-23
  • 2021-06-06
  • 2021-12-01
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-21
  • 2022-12-23
  • 2021-08-16
  • 2022-12-23
  • 2021-04-18
  • 2021-04-01
  • 2021-05-06
相关资源
相似解决方案