简体   繁体   English

使用IntelliJ IDEA时,如何轻松混淆Android应用?

[英]How do I easily obfuscate an Android app when using IntelliJ IDEA?

I imagine there are two options: 我想有两种选择:

  1. Build a parallel ANT script and bypass the IDE (seems pretty inefficient when the IDE is so good) 构建一个并行的ANT脚本并绕过IDE(当IDE非常好时,效率非常低)

  2. Somehow integrate Proguard/yGuard or similar with IntelliJ 以某种方式将Proguard / yGuard或类似功能与IntelliJ集成

I've tried installing plugins for Proguard/yGuard into IntelliJ but neither seem to be working (installed ok, but don't appear under Facets), and actually I'm not 100% sure these plugins will help me obfuscate or whether they just provide a de-obfuscation facility for debugging. 我已经尝试将Proguard / yGuard的插件安装到IntelliJ中,但似乎都没有工作(安装好,但不会出现在Facets下),实际上我并不是100%确定这些插件会帮助我混淆或是否只是提供用于调试的去混淆工具。

I figure ANT is the best route, but would appreciate your thoughts. 我认为ANT是最好的路线,但会很感激你的想法。 I just want a way to reduce the chances of someone reverse-engineering apps, but without spending hours setting it up. 我只想要一种方法来减少某人对应用程序进行逆向工程的机会,但不需要花费数小时来设置它。

I'd vote for 1st option - write an ANT script. 我投票给第一个选项 - 写一个ANT脚本。 This has the advantage of being independent of the IDE, even a build server can run it easily. 这具有独立于IDE的优点,即使构建服务器也可以轻松运行它。

One thing you could do is just open the project in Eclipse by creating a new project from existing sources. 您可以做的一件事就是通过从现有源创建一个新项目来在Eclipse中打开项目。 The two IDEs play quite nicely with each other. 两个IDE相互配合得非常好。 Many teams use both and go back and forth between them. 许多团队使用它们并在它们之间来回切换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用IntelliJ IDEA时,是否有任何简便的方法来混淆Android应用程序? - Is there any easy way to obfuscate an Android app when using IntelliJ IDEA? 我如何轻松地将eclipse android项目导入到Intellij IDEA 10中 - How do easily I import eclipse android project into Intellij IDEA 10 如何为Android应用程序设置IntelliJ IDEA? - How do I set up IntelliJ IDEA for Android applications? 如何在MAC上为Android应用程序设置IntelliJ IDEA - How do i set up IntelliJ IDEA for android applications on a MAC 缩小Android应用程序,但不要混淆它 - Minify android app but do not obfuscate it 如果我已经在使用IntelliJ IDEA,是否必须下载Android Studio? - Do I have to download Android Studio if I am already using IntelliJ IDEA? 在android应用中实施广告时出现ClassNotFoundException(IntelliJ Idea) - ClassNotFoundException when implementing ads in android app (IntelliJ Idea) 如何混淆 Android 的 Unity 应用程序代码 - How do I obfuscate Unity application code for Android 如何安装独立的 Android SDK 然后将其添加到 Windows 上的 IntelliJ IDEA? - How do I install the standalone Android SDK and then add it to IntelliJ IDEA on Windows? 如何在IntelliJ IDEA中添加库(android-support-v7-appcompat) - How do I add a library (android-support-v7-appcompat) in IntelliJ IDEA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM