更新 dexguard 版本时抛出错误 - 在 DexGuard 插件之前应用 Crashlytics 插件

While Updating dexguard version throw error - Crashlytics plugin is applied before the DexGuard plugin

更新 dexguard 版本时出现错误 ---- 在 DexGuard 插件之前应用了 Crashlytics 插件。

类路径'com.android.tools.build:gradle:3.4.1'
dexguard 版本 8.5.01

我的插件 --
应用插件:'com.android.application'
应用插件:'io.fabric'
应用插件: 'com.google.firebase.firebase-crash'
应用插件:'dexguard'

更改您的插件序列。请在应用程序插件后使用 dexguard。基本上你需要在 dexguard 插件

之后保留 fabric 插件
apply plugin: 'com.android.application'
apply plugin: 'dexguard' 
apply plugin: 'io.fabric' 
apply plugin: 'com.google.firebase.firebase-crash'