我刚刚运行flutter build apk --release
但是由于这些警告,构建失败。
我该如何解决?
有人有主意吗?
警告:库类com.google.gson.Gson $ 6扩展或实现程序类com.google.gson.TypeAdapter 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.Picasso 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.Picasso 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.RequestCreator 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.RequestCreator 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.RequestCreator 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.RequestCreator 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.Picasso $ Priority 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.RequestCreator 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.RequestCreator 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.Picasso 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.RequestCreator 警告:com.zhihu.matisse.engine.impl.PicassoEngine:找不到引用的类com.squareup.picasso.Picasso $ Priority 警告:com.zhihu.matisse.internal.model.SelectedItemCollection:找不到引用的类com.zhihu.matisse.R $ plurals 警告:com.zhihu.matisse.internal.model.SelectedItemCollection:找不到引用的类com.zhihu.matisse.R $ plurals 警告:com.zhihu.matisse.internal.ui.BasePreviewActivity:在程序类com.zhihu.matisse.R $ string中找不到引用字段'int error_over_original_size' 警告:com.zhihu.matisse.internal.ui.BasePreviewActivity $ 2:在程序类com.zhihu.matisse.R $ string中找不到引用的字段'int error_over_original_count' 警告:com.zhihu.matisse.ui.MatisseActivity:在程序类com.zhihu.matisse.R $ string中找不到引用字段'int error_over_original_size' 警告:com.zhihu.matisse.ui.MatisseActivity:在程序类com.zhihu.matisse.R $ string
中找不到引用的字段'int error_over_original_count'
ProGuard
#Flutter Wrapper
-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.** { *; }