Exporting an Android project while using proguard on adt&sdk 20

后端 未结 5 800
青春惊慌失措
青春惊慌失措 2020-12-21 04:59

I\'ve updated to the new adt&sdk 20, and I\'m having problems with the new way Proguard is being used on Eclipse. I\'m not a pro with Proguard at all, yet I\'ve always u

5条回答
  •  眼角桃花
    2020-12-21 05:19

    If it was working fine before and you haven't learnt Proguard, just change this line:

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

    to this line:

     proguard.config=proguard.cfg
    

    then you'll have your old Proguard setup back, I'd recommend updating though, it should just work unless your using some 3rd party jars? These are what is it saying is missing and you should use the -keep flag to stop Proguard from removing them when it obfuscates.

提交回复
热议问题