Proguard configuration for Android Support v4 22.2.0

前端 未结 2 1516
时光说笑
时光说笑 2021-02-05 06:32

After updating dependencies on Gradle Android build to use com.android.support:support-v4:22.2.0 from local Maven extras repository (within SDK), Proguard started t

相关标签:
2条回答
  • 2021-02-05 06:56

    The only solution is what you have mentioned, i.e -dontwarn android.support.v4.**. This is actually taken from the <path-to-android-sdk>/tools/proguard/proguard-android.txt, where it says:

    # The support library contains references to newer platform versions.
    # Don't warn about those in case this app is linking against an older
    # platform version.  We know about them, and they are safe.
    -dontwarn android.support.**
    
    0 讨论(0)
  • 2021-02-05 07:04

    It is safe to set don't warn for the support library classes according to the Android team. You can do this via:

    ## Support library
    -dontwarn android.support.**
    
    0 讨论(0)
提交回复
热议问题