How to automatically generate proguard-android.txt?

后端 未结 4 1782
轮回少年
轮回少年 2021-01-13 11:54

Reading all the wonderful things the new ProGuard Improvements for Android do, I switched to to the new scheme by uncommenting the following line in a newly created

相关标签:
4条回答
  • 2021-01-13 12:28

    Your declaration is:

    proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt;proguard-project.txt
    

    The Correct declaration is (: instead of;):

    proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt
    
    0 讨论(0)
  • 2021-01-13 12:42

    I recommend creating a new project and copying the proguard-project.txt from there.

    In eclipse, you can do that by going to File --> New --> Other --> Android --> Android Application Project. It's just in the root directory of the new project.

    0 讨论(0)
  • 2021-01-13 12:43

    It should either be generated or come with your sdk (I think). However, here is a link to the one that I have (tools r19). http://pastebin.com/7rNJkns0

    0 讨论(0)
  • 2021-01-13 12:44

    New Projects or old ones converted when changing API now in project.properties link to

    proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt:proguard-project.txt
    

    You can simply link your projects proguard config by commenting the line and adding

    proguard.config=proguard-project.txt
    

    to it.

    Cheers.

    0 讨论(0)
提交回复
热议问题