向Android Studio中的Flatter应用程序添加Flatter_email_sender 2.0.0库后生成问题

向Android Studio中的Flatter应用程序添加Flatter_email_sender 2.0.0库后生成问题,android,android-studio,flutter,flutter-dependencies,Android,Android Studio,Flutter,Flutter Dependencies,将此库添加到pubspec.yaml文件后,我无法再让Android应用程序生成 我得到以下错误: /Users/duffette/AndroidStudioProjects/undaunted_golf_flutter/android/app/src/main/AndroidManifest.xml:22:18-86 Error: Attribute application@appComponentFactory value=(androidx.core.app.CoreCompon

将此库添加到pubspec.yaml文件后,我无法再让Android应用程序生成

我得到以下错误:

/Users/duffette/AndroidStudioProjects/undaunted_golf_flutter/android/app/src/main/AndroidManifest.xml:22:18-86 Error:
    Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86
    is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
    Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:15:5-38:19 to override.

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute application@appComponentFactory value=(androidx.core.app.CoreComponentFactory) from [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86
    is also present at [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory).
    Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:15:5-38:19 to override.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

* Get more help at (help link)

BUILD FAILED in 8s
*******************************************************************************************
The Gradle failure may have been because of AndroidX incompatibilities in this Flutter app.


 See (link) for more information on the problem and how to fix it.
*******************************************************************************************
Finished with error: Gradle task assembleDebug failed with exit code 1
/Users/duffette/AndroidStudioProjects/undaunded_golf_flatter/android/app/src/main/AndroidManifest.xml:22:18-86错误:
属性application@appComponentFactory值=(androidx.core.app.CoreComponentFactory)来自[androidx.core:core:1.0.0]AndroidManifest.xml:22:18-86
也出现在[com.android.support:support compat:28.0.0]AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory)上。
建议:在AndroidManifest.xml:15:5-38:19处的元素中添加“tools:replace=“android:appComponentFactory””以覆盖。
失败:生成失败,出现异常。
*出了什么问题:
任务“:app:processDebugManifest”的执行失败。
>清单合并失败:属性application@appComponentFactory值=(androidx.core.app.CoreComponentFactory)来自[androidx.core:core:1.0.0]AndroidManifest.xml:22:18-86
也出现在[com.android.support:support compat:28.0.0]AndroidManifest.xml:22:18-91 value=(android.support.v4.app.CoreComponentFactory)上。
建议:在AndroidManifest.xml:15:5-38:19处的元素中添加“tools:replace=“android:appComponentFactory””以覆盖。
*尝试:
使用--stacktrace选项运行以获取堆栈跟踪。使用--info或--debug选项运行以获得更多日志输出。使用--scan运行以获得完整的洞察力。
*在(帮助链接)获取更多帮助
生成在8秒内失败
*******************************************************************************************
Gradle故障可能是因为此颤振应用程序中的AndroidX不兼容。
请参阅(链接)以了解有关该问题以及如何解决该问题的更多信息。
*******************************************************************************************
已完成,但出现错误:Gradle任务assembleDebug失败,退出代码为1
我已经将我的项目迁移到AndroidX。 我已确保编译DKVersion28和TargetSDKVVersion28

我已成功地将其他库添加到我的项目中


我正试图按照说明将“tools:replace=“android:appComponentFactory””添加到AndroidManifest.xml:15:5-38:19的
元素以进行覆盖,但我没有成功。

导入不具有AndroidX兼容性的版本。尝试使用1.2.0版hanks@AdityaNigam。我试过了,但也犯了同样的错误。尝试此操作。导入不具有AndroidX兼容性的版本。尝试使用1.2.0版hanks@AdityaNigam。我试过了,但也犯了同样的错误。试试这个。