Proguard.cfg Missing

前端 未结 4 1219
生来不讨喜
生来不讨喜 2020-12-05 07:58

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).

相关标签:
4条回答
  • 2020-12-05 08:38

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

    0 讨论(0)
  • 2020-12-05 08:53

    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.

    0 讨论(0)
  • 2020-12-05 08:56

    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 
    
    0 讨论(0)
  • 2020-12-05 08:58

    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.

    0 讨论(0)
提交回复
热议问题