Flutter 项目 Your app isn't using AndroidX错误

编程知识 更新时间:2023-05-01 23:50:55

[!] Your app isn't using AndroidX.
    To avoid potential build failures, you can quickly migrate your app by following the steps on https://goo.gl/CP92wY.

这个提示是说项目并没有使用AndroidX

 

然后项目会接着报如下的一堆错误,其实就是没有使用AndroidX的问题

Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
	is also present at [androidx.core:core:1.1.0] AndroidManifest.xml:24:18-86 value=(androidx.core.app.CoreComponentFactory).
	Suggestion: add 'tools:replace="android:appComponentFactory"' to <application> element at AndroidManifest.xml:9:5-32: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=(android.support.v4.app.CoreCompo

更多推荐

Flutter 项目 Your app isn't using AndroidX错误

本文发布于:2023-04-24 15:05:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/b3245bf5a5f34012bb115491dfce0634.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:错误   项目   Flutter   AndroidX   app

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 100897文章数
  • 26076阅读数
  • 0评论数