8

I want to enable the ProGuard for my application and in this documentation ProGuard it says that the proguard.cfg, where I have to modify something, is automatically generated. But if I look in my project folder I only see a proguard-project.txt file but I dont see the proguard.cfg which I need.

How can I get this proguard.cfg? Or was I'm doing wrong?

Please guid me to this file.

Johan
  • 74,508
  • 24
  • 191
  • 319
  • The proguard-project.txt is a project specific, there is another file uner ANDROID_SDK/tool/proguard/proguard-android.txt or ANDROID_SDK/tool/proguard/proguard-android-optimize.txt – TacB0sS Dec 11 '13 at 09:13

2 Answers2

10

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.

GrIsHu
  • 29,068
  • 10
  • 64
  • 102
1

From this you can get your right way:

Proguard.cfg Missing

i am searching for default.properties file for missing proguard.cfg

proguard.cfg file missing

android studio - proguard.cfg file is missing

Community
  • 1
  • 1
Piyush
  • 18,895
  • 5
  • 32
  • 63