执行失败的任务':barcode_scan2:compiledebugkotlin'

发布于 2025-01-19 19:34:55 字数 328 浏览 2 评论 0原文

我在我的flutter应用程序中使用了barcode_scan包,在包关闭后,我开始使用新打开的barcode_scan2包。但我收到下面提到的错误。这是什么原因呢?你能帮助我吗?

我当前的 kotlin 版本:

 ext.kotlin_version = '1.6.20'

错误:

在此处输入图像描述

I was using the barcode_scan package in my flutter application, and after the package was closed, I started using the newly opened barcode_scan2 package. But I am getting the below mentioned errors. What is the reason for this? can you help me?

My current kotlin version:

 ext.kotlin_version = '1.6.20'

Error:

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

べ繥欢鉨o。 2025-01-26 19:34:55

从插件文档中,您需要在Kotlin版本上'1.3.61'

 
buildscript {
    Ext.Kotlin_version ='1.3.61'
    // ...
    依赖项{
        // ...
        classpath“ org.jetbrains.kotlin:kotlin-gradle-plugin:$ kotlin_version”
    }} // ...``````
 

from the plugin docs you need to be on kotlin version '1.3.61'


buildscript {
    ext.kotlin_version = '1.3.61'
    // ...
    dependencies {
        // ...
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
    } } // ... ```
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文