当我向依赖项添加附加组件时出现 AndroidX 错误。
logger: 0.7.0 + 2, open_file: 2.0.3 error when adding plugins.
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app. See for more information on the problem and how to fix it.
最佳答案
在您的应用程序中,您必须确保仅使用与 androidX 库对齐的插件,否则可能会导致一些问题。
logger 和open_file 似乎还兼容androidX,我怀疑你从未读过"AndroidX compatibility"
考虑将您的 Flutter 应用程序迁移到 AndroidX。不要忘记添加
android.enableJetifier=true
android.useAndroidX=true
在你的 gradle.properties 文件下。
关于flutter - 将插件添加到依赖项时出现 AndroidX 错误。解决办法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57572933/