本文介绍了在IntelliJ IDEA的如何Proguard的工作?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用了Android开发的IntelliJ IDEA 11.1.3,我必须承认这是一个奇妙的工具。我有一个关于如何使用Proguard的使用IDE一些疑惑。

我发现运行Progaurd下打开模块设置选项 - >刻面如下

运行Proguard的的需要的配置文件的位置的被默认为ProGuard的-project.txt。接下来是一个复选框,它说的包括系统ProGuard的文件的。

什么的系统Proguard的的文件是指在该复选框的选择吗?

Proguard的。鉴于所有的配置是ProGuard的-android.txt在Android SDK中。在IntelliJ IDEA的ProGuard的如何配置工作?

PS任何帮助将是非常美联社preciated我想了解的ProGuard用的IntelliJ将近一天,现在并具有another问题。

解决方案

花费两年时间设法工作Proguard的4.7与IntelliJ IDEA的,我有以下几点结束

  1. 在它没有任何区别,如果你去掉注释 proguard.config = $ {sdk.dir} \工具\ ProGuard的\ ProGuard的-android.txt:ProGuard的-project.txt 文件 project.properties
  2. 在我不知道的IntelliJ读取位于 ProGuard的-android.txt 文件Android的SDK /工具/ ProGuard的
  3. 在IntelliJ IDEA的读取文件位于项目 ProGuard的-project.txt 文件,这样的建议是编辑和将所有ProGuard的配置在这个文件中。
  4. 在我还不清楚是什么呢包括系统ProGuard的文件复选框选项做的。

I am using IntelliJ IDea 11.1.3 for Android development and I must admit it is a wonderful tool. I have few doubts about how to use Proguard with the IDE.

I have found the option of Run Progaurd under Open Module Settings -> Facets as in the image below

Run Proguard need a location of Config File which is defaulted to proguard-project.txt. Next is a check box which says Include system proguard file.

What System Proguard File is referred to in this checkbox option?

Given all the configuration of Proguard is in proguard-android.txt in Android SDK. How does proguard config works in the IntelliJ Idea?

P.S Any help will be highly appreciated I am trying to understand proguard with IntelliJ for almost a day now and having unsolved problems in another question.

解决方案

After spending two days trying to work Proguard 4.7 with IntelliJ Idea, I have following points to conclude

  1. It does not make any difference if you uncomment the line proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt in file project.properties.
  2. I not sure if IntelliJ reads the proguard-android.txt file located at android-sdk/tools/proguard
  3. IntelliJ idea reads the file proguard-project.txt files located in the project so suggestion is edit and place all your proguard configuration in this file.
  4. I am still not clear what does Include system proguard file checkbox option do.

这篇关于在IntelliJ IDEA的如何Proguard的工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-23 09:29