Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Proguard.cfg Missing

I made the mistake of upgrading eclipse today and now can't get my a new Android project to get going.

I get the message Proguard.cfg (the file can't be found).

Where is this thing I can't seem to find it? Is it possible to get rid of it I don't need Obfuscation in this project...

Thanks

like image 675
Tantalus Avatar asked Dec 14 '10 22:12

Tantalus


People also ask

Where is ProGuard CFG?

Android apps, the default ProGuard configuration file supplied by Xamarin. Android will be sufficient to remove all (and only) unused code. To view the default ProGuard configuration, open the file at obj\Release\proguard\proguard_xamarin. cfg.

How do I add ProGuard rules to pro?

Android Studio adds the proguard-rules.pro file at the root of the module, so you can also easily add custom ProGuard rules specific to the current module. You can also add ProGuard files to the getDefaultProguardFile directive for all release builds or as part of the productFlavor settings in the build.

Where is ProGuard rules file?

Android Gradle Plugin provides us two different ProGuard rules config files which are located under build/intermediates/proguard-files .


2 Answers

lately the base proguard config is here in the sdk dir - so you only have to put this into your project.properties:

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt

if you want to make project-specific modifications, create a proguard-project.txt and change the line to:

proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt 
like image 170
ligi Avatar answered Nov 15 '22 17:11

ligi


If you really don't need Proguard to obfuscate your release builds, you can remove the following line from the default.properties file in your project root folder:

proguard.config=proguard.cfg

If you want a proguard.cfg template, you can create a new Android project from scratch with Eclipse's project wizard, then copy proguard.cfg from the new project over to the previous one.

like image 37
Julio Gorgé Avatar answered Nov 15 '22 19:11

Julio Gorgé