构建发布时出现颤动警告

2024-01-19

当我尝试构建 --release 我的应用程序时,我不断收到这些红色警告: 尝试扑干净...... flutter clean --cache 没有任何作用,所有包都是最新的。

我的构建 Gradle:

    buildscript {
    ext.kotlin_version = '1.8.0'
    repositories {
        google()
        mavenCentral()
    }

    dependencies {
        classpath 'com.android.tools.build:gradle:7.3.0'
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    }
}

首先出现这些红色警告:

 C:\Users\PC\AppData\Local\Pub\Cache\hosted\pub.dev\cloud_firestore-4.8.4\android\src\main\java\io\flutter\plugins\firebase\firestore\FlutterFirebaseFirestoreMessageCodec.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.
    Note: Some input files use or override a deprecated API.
    Note: Recompile with -Xlint:deprecation for details.
    Note: C:\Users\PC\AppData\Local\Pub\Cache\hosted\pub.dev\firebase_messaging-14.6.5\android\src\main\java\io\flutter\plugins\firebase\messaging\FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations.
    Note: Recompile with -Xlint:unchecked for details.

e: C:/Users/PC/.gradle/caches/transforms-3/96912e3e4984bdc463916ea6fba56ac4/transformed/jetified-activity-1.7.2/jars/classes.jar!/META-INF/activity_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/transforms-3/c0c21f8311e0d3bdd149fde1cccd7c6b/transformed/lifecycle-livedata-core-2.6.1/jars/classes.jar!/META-INF/lifecycle-livedata-core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/transforms-3/57c255789025aac2fb6743aca74eb9ff/transformed/lifecycle-livedata-2.6.1/jars/classes.jar!/META-INF/lifecycle-livedata_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/transforms-3/dfe23d076662816f417c59321ede171a/transformed/lifecycle-viewmodel-2.6.1/jars/classes.jar!/META-INF/lifecycle-viewmodel_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/transforms-3/4fec81ebf7b0698db38977ed6bdfb196/transformed/jetified-lifecycle-viewmodel-savedstate-2.6.1/jars/classes.jar!/META-INF/lifecycle-viewmodel-savedstate_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/transforms-3/a45d532d047b5ee2ada4d44d5157d37f/transformed/jetified-core-ktx-1.10.1/jars/classes.jar!/META-INF/core-ktx_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/transforms-3/9d8fb97b2a99c1b1d78bd925837bcbf3/transformed/core-1.10.1/jars/classes.jar!/META-INF/core_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.      
e: C:/Users/PC/.gradle/caches/transforms-3/9c576e910ff1e555ef5f56b5c13b0097/transformed/lifecycle-runtime-2.6.1/jars/classes.jar!/META-INF/lifecycle-runtime_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/modules-2/files-2.1/androidx.lifecycle/lifecycle-common/2.6.1/10f354fdb64868baecd67128560c5a0d6312c495/lifecycle-common-2.6.1.jar!/META-INF/lifecycle-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/transforms-3/134cbae0d4fd6d050de78674ca51ac81/transformed/jetified-savedstate-1.2.1/jars/classes.jar!/META-INF/savedstate_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation-jvm/1.6.0/a7257339a052df0f91433cf9651231bbb802b502/annotation-jvm-1.6.0.jar!/META-INF/annotation.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.8.22/636bf8b320e7627482771bbac9ed7246773c02bd/kotlin-stdlib-1.8.22.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.8.22/636bf8b320e7627482771bbac9ed7246773c02bd/kotlin-stdlib-1.8.22.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.8.22/636bf8b320e7627482771bbac9ed7246773c02bd/kotlin-stdlib-1.8.22.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/PC/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.8.22/1a8e3601703ae14bb58757ea6b2d8e8e5935a586/kotlin-stdlib-common-1.8.22.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
Running Gradle task 'assembleRelease'...

                        

  1. 颤动升级
  2. Android Studio 有新版本 => 前往网站下载
  3. 更新Sdk和所有
  4. android/build.gradle => 类路径 'com.google.gms:google-services:4.3.15'
  5. 如果不颤动干净=> 4。 它解决了我的问题。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

构建发布时出现颤动警告 的相关文章

随机推荐

  • 如何使用 JavaScript 将 SVG 图像文件放入 HTML 中

    我有一个 SVG 图像文件 我想将其作为 SVG 放入 HTML 页面中 所以我仍然利用高分辨率放大 缩小的优势 这是我的代码 我把SVG放在里面 放在SVG里面 代码运行正确 但浏览器中没有出现 SVG 我怎样才能展示它 有没有什么方法可
  • 为什么我们不能使用友元函数重载“=”?

    为什么不允许使用友元函数重载 我写了一个小程序 但它给出了错误 class comp int real int imaginary public comp real 0 imaginary 0 void show cout lt lt Re
  • 何时过滤/清理数据:在数据库插入之前还是在显示之前?

    当我准备解决输入数据过滤和清理问题时 我很好奇是否有最佳 或最常用 的做法 是在将数据插入数据库之前过滤 清理数据 HTML JavaScript 等 更好 还是应该在准备以 HTML 形式显示数据时进行过滤 清理 一些注意事项 我正在 P
  • Rails 4 - ajax:成功未被触发

    我通过ajax提交表单 我可以在Chrome的网络面板中看到它成功并返回了一些JSON 但是 ajax success 事件永远不会被触发 为什么 Does not work despite getting success in the N
  • IIS 与 Windows 身份验证绑定

    我有一个本地网站 http localhost 测试站点 http localhost testsite 与 Windows 身份验证 效果很好 现在我将网站的绑定更改为 URL http testsite blablabla biz ht
  • 如何正确格式化QCompleter弹出列表的列表项?

    我想研究如何制作一个小型用户界面 用户可以在其中输入一些字母并根据给定的数据源 此处列出 获取一些建议 从而使搜索变得更容易 为此 我使用 Qt 的QCompleter class 在匹配元素中 键入的字母应使用 HTML 突出显示 如下面
  • 路径前缀 \??\ 和 \\?\

    前缀为 的路径有什么区别 以及那些前缀为 在 Windows 7 CMD 行 DIR 给出 Volume 00000000 0000 0000 0000 000000000000 WMIC 音量列表给出 Volume 00000000 00
  • 移动学生如何有效地使用带有源代码控制系统的 Dropbox?

    我买了一台笔记本电脑 为下个学期做准备 这将使我在全职工作的同时参加大学编程课程 当然 我会使用源代码控制系统 可能是 Subversion 并想到在我的 Dropbox 文件夹中创建我的存储库 这将使我能够使用我的笔记本电脑或台式机 或者
  • 错误:“y_true 中的类数不等于 'y_score' 中的列数”

    我有一个不平衡的多类数据集 当我尝试计算 roc auc score 时 我收到此错误 ValueError y true 中的类数不等于 y score 中的列数 这是代码 model svm SVC kernel linear prob
  • 使用 Firefox Addon SDK 列出所有驱动器

    是否有跨操作系统的方法来使用 firefox addon sdk 列出所有已安装驱动器 硬盘 USB 驱动器等 的路径 我找到了适用于 Windows 的代码 但找不到跨操作系统的解决方案 Components utils import r
  • LINQ to XML - 尝试通过元素的属性值选择元素列表

    我试图从 XML 文档中获取元素列表 其中节点具有特定的属性值 该文档的结构如下
  • 从 C# 中的函数返回类

    我可以从 C 中的函数返回类对象作为返回值 而不是返回 string 或 int 或 etc C 中的类对象是一种类型 所以你绝对可以从函数返回它 public Type Foo return typeof string public Ty
  • OpenMp 与 IOS/Android 的兼容性

    我正在尝试做什么 我正在研究C c 为所有平台构建产品的代码 我操作系统 Android Windows 移动 桌面 Mac Linux 到目前为止我做了什么 是的 有许多在线链接讨论 OpenMp 与不同处理器和操作系统的兼容性 但很难从
  • xmpp框架iOS新用户注册方法

    我已经开发了适用于 iOS 的 XMPP 聊天客户端 现在我正在研究如何从 iOS 本身进行新用户注册 任何人都可以帮助注册新用户的方法 因为它需要与服务器通信并将用户名和密码存储到服务器数据库中 请帮帮我 我已经搜索了两天了 NSMuta
  • cursor.fetchone() 返回 None 但数据库中的行存在

    我正在用 python 编写一个与 MySQL 数据库交互的程序 对于 sql 查询 我使用 MySQLdb 问题是fetchone 返回 None 但通过数据库浏览器我可以看到that行存在 这段代码 query SELECT FROM
  • 如何使用Python库生成后缀树? [关闭]

    Closed 这个问题正在寻求书籍 工具 软件库等的推荐 不满足堆栈溢出指南 help closed questions 目前不接受答案 我需要可以构建后缀树 特别是广义后缀树的Python库 你能给我推荐一些图书馆吗 谢谢 请参阅以下库
  • 在 JApplet 上运行的 JPanel

    我正在设计一个 JApplet 基本上这个小程序将允许用户绘制二次方程图 并插入 x 轴和 y 轴的范围 但要达到这一目标 还有很多工作要做 我仍处于设计界面的阶段 这是我的代码 import java awt Dimension impo
  • Spring启动-配置EntityManager

    我正在使用Google guice在我的项目中 现在我尝试将框架转换为SpringBoot完全 我配置了 Beanpersistence xml like below in Autowired Bean name transactionMa
  • Java awt.Robot:CTRL+ALT+DEL 未调出所需的屏幕

    我最近刚刚发现 awt Robot 库 我很高兴能够使用它 我以为我应该对我的朋友开个小恶作剧 让机器人按控制 Alt 删除按锁定计算机按钮 但我无法让程序调出控制 Alt 删除屏幕 这是我的代码 import java awt impor
  • 构建发布时出现颤动警告

    当我尝试构建 release 我的应用程序时 我不断收到这些红色警告 尝试扑干净 flutter clean cache 没有任何作用 所有包都是最新的 我的构建 Gradle buildscript ext kotlin version