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 fi开发者_如何转开发nd it? Is it possible to get rid of it I don't need Obfuscation in this project...
Thanks
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
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.
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.
cp /android-sdk/tools/proguard/examples/android.pro /android-sdk/tools/lib/proguard.cfg
精彩评论