📜  发布 apk 无法正常工作 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:04.140000             🧑  作者: Mango

代码示例1
add a proguard file and fix it.

1. On your app level build.gradle add this to your buildTypes > release section
shrinkResources false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
2. Along the build.gradle file create a proguard-rules.pro file and add:
-keep class io.flutter.plugin.editing.** { *; }