gpt4 book ai didi

java - 如何在intellij IDEA上使用proguard?

转载 作者:塔克拉玛干 更新时间:2023-11-02 19:48:40 26 4
gpt4 key购买 nike

我正在使用 Intellij IDEA 开发 Java 桌面应用程序。我想使用混淆器混淆我的源代码。如何在 Intellij IDEA 2016.1.14 上集成/使用混淆器?

最佳答案

1. 添加插件Intellijguar2

enter image description here

2.Project Structure ->modules->obfuscation 中按提示下载 yguard。它会打开一个 html 页面,其中 yguard 位于页面的右边缘旁边。解压。得到 jar 。导航到 jar 。设置它的路径。取消选中 pedantic error-checking(可选),定义项目的 MainClass。好的。

3.构建->构建项目->构建工件并获得普通的可执行jar。(如果在运行菜单中看不到启用的工件,请转到文件-> 项目结构->artfact 并通过 + 依赖于主类的新项目创建)

4.构建->混淆***模块

enter image description here

5. 添加 YourProject/out/production/YourProject/firstfolder_of_packagename 包含您项目的 *.class 文件(我的是 'uz',例如)。

6. 删除模块编译输出 在下方指定要混淆的jar的路径并按'build'

7. 使用 zip 程序打开经过混淆的 jar。确保类文件都被 JD-GUI 应用程序混淆。

8. 切断 META-INF 文件夹并从可执行的混淆 jar 中手动添加 META-INF 以及 libs 或 assets 等文件夹(或在您之前设置的工件中找到它们)。反过来你会得到一个混淆的可执行 jar例如。对于 json lib,我终于在 zip 编辑器中得到了结果 View : enter image description here

关于java - 如何在intellij IDEA上使用proguard?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47484475/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com