How to automatically generate proguard-android.txt?

旧时模样 提交于 2019-12-01 06:33:02

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

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.

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.

Naveen

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
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!