Unresolved class name proguard-rules Android Studio 4.0

后端 未结 4 2150
没有蜡笔的小新
没有蜡笔的小新 2020-12-15 02:25

When I update to Android Studio 4.0 proguard-rules it shows warning Unresolved class name. Below is example but I sure it still waring the exist class in my pro

相关标签:
4条回答
  • 2020-12-15 03:07

    replace

    .**
    

    with

    .*.*
    

    result

    -keep class com.squareup.haha.*.* { *; }
    -keep class com.squareup.leakcanary.*.* { *; }
    
    0 讨论(0)
  • 2020-12-15 03:14

    This issue is fixed in Android Studio 4.2 Canary 8. Please find the release notes here https://androidstudio.googleblog.com/2020/08/android-studio-42-canary-8-available.html and check for this issue id #153616200

    0 讨论(0)
  • 2020-12-15 03:18

    A folder and its subfile. I have tested this:

    com.xx.xx.* { *; }   
    

    I guess that it may contain multiply folders and subfile. I've not tested this:

    com.xx.xx.**.* {*;}   
    
    0 讨论(0)
  • 2020-12-15 03:19

    Check this issue: https://issuetracker.google.com/issues/147802433

    `If you right-click on error, there is option "suppress for statement", after that AS adds a comment such as:

    noinspection ShrinkerUnresolvedReference

    -keep class not.existing

    And with this comment there is no error for "not.existing".`

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