gpt4 book ai didi

android - 更新包后 Flutter Android 构建失败。安卓X错误

转载 作者:IT王子 更新时间:2023-10-29 06:57:48 24 4
gpt4 key购买 nike

我正在尝试运行 flutter build apk 但不断收到以下错误。 iOS 运行完美。我不确定这里发生了什么。任何帮助将不胜感激。

这是我的 pubspec.yaml

  intl: ^0.15.6
cupertino_icons: ^0.1.2
firebase_auth: 0.8.1+4
google_sign_in:
cloud_firestore: 0.9.0+1
shared_preferences: ^0.4.3
firebase_messaging: 3.0.1
image_picker:
firebase_storage:
cached_network_image:
firebase_core:
image:
photo_view:
flutter_auth_buttons:
splashscreen:
geolocator: 3.0.0
color: any
folding_cell: "^0.1.0"
google_maps_flutter: 0.3.0
stream_transform: ^0.0.14+1
chewie:
rxdart:
flutter_sms:
flutter_html: ^0.9.4

这是终端中的一些错误。还有一点,但我认为这是关键。

Initializing gradle...                                       3.1s
Resolving dependencies... 6.8s
Gradle task 'assembleRelease'...
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
*********************************************************
WARNING: This version of cloud_firestore will break your Android build if it or its dependencies aren't compatible with AndroidX.
See "link" for more information on the problem and how to fix it.
This warning prints for all Android build failures. The real root cause of the error may be unrelated.
*********************************************************

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':google_api_availability:verifyReleaseResources'.
> java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
Output: /Users/remobajwa/Desktop/tu_chat/build/google_api_availability/intermediates/res/merged/release/values/values.xml:197: error: resource android:attr/fontVariationSettings not found.

最佳答案

如果您想了解有关 AndroidX 警告的更多信息,Flutter 团队已发布了一篇关于AndroidX 兼容性 的完整文章。你可以follow it here .

实际错误信息如下:

错误:找不到资源 android:attr/fontVariationSettings。

有各种资源概述了这个问题。我建议你start here .但是,它可能已连接到 AndroidX,因此如果您尚未按照迁移指南进行操作,则可能需要这样做。

关于android - 更新包后 Flutter Android 构建失败。安卓X错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55198784/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com