Tantalus
Tantalus

Reputation: 173

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

Upvotes: 17

Views: 28169

Answers (4)

ligi
ligi

Reputation: 39519

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 

Upvotes: 31

chavey
chavey

Reputation: 91

cp /android-sdk/tools/proguard/examples/android.pro /android-sdk/tools/lib/proguard.cfg

Upvotes: 9

LesterM
LesterM

Reputation: 162

I just experienced the same problem.

You need to update your SDK tools to current version.

In Eclipse go into your Android SDK and AVD Manager. Select Installed Packages in the left hand tab. Click Update All. Select the SDK tools latest version. Click Install.

After it's done you should have the Proguard.cfg file in your tools/lib/ directory.

Upvotes: 9

Julio Gorgé
Julio Gorgé

Reputation: 10106

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.

Upvotes: 15

Related Questions