How to config my proguard-project.txt file to remove just Logs

前端 未结 2 703
被撕碎了的回忆
被撕碎了的回忆 2020-12-05 15:53

This is the code i am using right now in the proguard-project.txt

# This is a configuration file for ProGuard.
# http://proguard.sourceforge.net/index.html#m         


        
2条回答
  •  囚心锁ツ
    2020-12-05 16:36

    If you're stuck with this on Android Studio, the solution of Eric must be applied to your build.grade file (at the app level). Replace:

    proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    

    with:

    proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    

提交回复
热议问题