proguard warning: the configuration keeps the entry point…but not the descriptor class

前端 未结 6 1005
小鲜肉
小鲜肉 2021-01-03 18:45

I\'ve configured:

-keep ,allowoptimization,allowobfuscation,allowshrinking public class     org.jf.dexlib2.dexbacked.** {
    *;
}

but stil

6条回答
  •  梦谈多话
    2021-01-03 19:05

    In my case this problem appears when I add to build.gradle

    minifyEnable true
    

    Official instructions: https://flutter.dev/docs/deployment/android

    Bug https://github.com/flutter/flutter/issues/19250

    Sample proguard-rules.pro file:

    #Flutter Wrapper
    -ignorewarnings
    -keep class io.flutter.app.** { *; }
    -keep class io.flutter.plugin.**  { *; }
    -keep class io.flutter.util.**  { *; }
    -keep class io.flutter.view.**  { *; }
    -keep class io.flutter.**  { *; }
    -keep class io.flutter.plugins.**  { *; }
    

提交回复
热议问题