Where do I find proguard.cfg in my project?
Solution 1
The documentation is slightly inaccurate. The generated file is proguard-project.txt
and will be in the root directory of your project.
To enable Proguard
, you will need to ignore the "do not modify"
warning in project.properties
and uncomment the following line:
proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
The Android tool chain will sometimes make changes to project.properties
, but your Proguard
path will be preserved.
Solution 2
From this you can get your right way:
i am searching for default.properties file for missing proguard.cfg
android studio - proguard.cfg file is missing
Related videos on Youtube
Johan
http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work
Updated on July 12, 2022Comments
-
Johan almost 2 years
I want to enable the
ProGuard
for my application and in this documentation ProGuard it says that theproguard.cfg
, where I have to modify something, is automatically generated. But if I look in my project folder I only see aproguard-project.txt
file but I dont see theproguard.cfg
which I need.How can I get this proguard.cfg? Or was I'm doing wrong?
Please guid me to this file.
-
GrIsHu over 10 yearsText Editor in eclipse.
-
Admin over 10 yearsOk thx. And this is all? How can I test it if it works or how I see it?
-
GrIsHu over 10 yearsWhat you want to see and test? Proguard file ?
-
Admin over 10 yearsI want to know or see if my app and it's code is obfuscated for more security.
-
GrIsHu over 10 yearsCheck out link to generate proguard file in android blog.cuelogic.co.in/how-to-use-proguard-in-android and also check documentation proguard.sourceforge.net/index.html#