如何自动生成的ProGuard,android.txt? [英] How to automatically generate proguard-android.txt?
问题描述
阅读所有美好的事物,新的 ProGuard的改进为Android 做,我切换到新的方案通过的取消注释的一个新创建的项目如下一行:
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 project:
proguard.config=${sdk.dir}\tools\proguard\proguard-android.txt;proguard-project.txt
但是,当我尝试导出该项目的APK,我招呼着以下消息:
But when I try to export this project's APK, I am greeted with the following message:
无效ProGuard的配置文件路径 C:\ Android的SDK-WINDOWS \工具\ ProGuard的\ ProGuard的-android.txt不 存在或不是一个普通的文件
Invalid proguard configuration file path C:\android-sdk-windows\tools\proguard\proguard-android.txt does not exist or is not a regular file
嗯,我检查了目录 C:\ Android的SDK-WINDOWS \工具\ ProGuard的
,果然,而这个目录存在并具有子目录,甚至一个README文件, ProGuard的-android.txt
是无处可寻。
Well, I checked the directory C:\android-sdk-windows\tools\proguard
and, sure enough, while this directory exists and has subdirectories and even a README file, proguard-android.txt
is nowhere to be found.
顺便说一句,我尝试着用:
而不是;
但是这似乎并没有改变任何东西
BTW, I tried it with :
instead of ;
but that didn't seem to change anything.
是不是Eclipse的ADT + + Proguard的应该是自动生成这个文件给我吗?我在想什么?
Isn't Eclipse+ADT+Proguard supposed to generate this file automatically for me? What am I missing?
另外,我在哪里可以找到一个标准组默认的规则为Android ProGuard的-android.txt使在我可以把它复制到它缺少插槽?
Also, where can I find a "standard" default set of rules for Android proguard-android.txt so that I can copy it over to its missing slot?
推荐答案
它的应的无论是生成或来人与你的SDK(我认为)。然而,这里是一个链接到一个我有(工具R19)。 http://pastebin.com/7rNJkns0
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
这篇关于如何自动生成的ProGuard,android.txt?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!