Android項目代碼(ProGuard)防止反編譯

我們需要在工程描述文件default.properties中,添加一句話,啓用ProGuard。如下所示:


# This file is automatically generated by Android Tools.   
# Do not modify this file -- YOUR CHANGES WILL BE ERASED!   
#   
# This file must be checked in Version Control Systems.   
#   
# To customize properties used by the Ant build system use,   
# "ant.properties", and override values to adapt the script to your   
# project structure.   
   
# Project target.   
target=android-8   
proguardproguard.config=proguard.cfg  
這樣,Proguard就可以使用了。當我們正常通過Android Tools導出Application Package時,Proguard就會自動啓用,優化混淆你的代碼。





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章