小编mig*_*uel的帖子

我的项目需要更新版本的 Kotlin Gradle 插件,但建议的修复不起作用

所以我刚刚升级了 flutter 并很快得到了这个错误:

\n
\xe2\x94\x8c\xe2\x94\x80 Flutter Fix \xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x90\n\xe2\x94\x82 [!] Your project requires a newer version of the Kotlin Gradle plugin.                       \xe2\x94\x82\n\xe2\x94\x82 Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then \xe2\x94\x82\n\xe2\x94\x82 update C:\\Users\\myUsername\\Desktop\\Swiper\\Swiper-main\\android\\build.gradle:                  \xe2\x94\x82\n\xe2\x94\x82 ext.kotlin_version = \'<latest-version>\'                                                      \xe2\x94\x82\n\xe2\x94\x94\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x80\xe2\x94\x98\nException: Gradle task assembleDebug failed with exit code 1\nExited (sigterm)\n
Run Code Online (Sandbox Code Playgroud)\n

这是升级时已知的重大更改。

\n

我应用了建议的修复,但错误并没有消失

\n

这是我的 \\android\\build.gradle:

\n
buildscript {\n    ext.kotlin_version = \'1.6.10\' //there was nothing here before\n    repositories {\n        google()\n        jcenter()\n    }\n\n    dependencies {\n        classpath \'com.android.tools.build:gradle:4.1.0\'\n        classpath \'com.google.gms:google-services:4.3.5\'\n    }\n}\n\nallprojects {\n    repositories {\n        google()\n …
Run Code Online (Sandbox Code Playgroud)

kotlin flutter flutter-dependencies

8
推荐指数
1
解决办法
6198
查看次数

如何租用自己的服务器来实现云功能?

我想使用自己的服务器来实现云功能,而不是依赖Google的服务器来消除功能的冷启动,我该怎么做?

firebase google-cloud-platform google-cloud-functions google-cloud-firestore

2
推荐指数
1
解决办法
585
查看次数

有没有办法在容器周围放置渐变色边框?

我拥有的:

Container(
        decoration: BoxDecoration( 
          borderRadius: BorderRadius.circular(35),
          border: Border.all(
            color: const Color(0xFFE800E8),//<---- Insert Gradient Here 
            width: 1.5,
          )
        ),
),
Run Code Online (Sandbox Code Playgroud)

这是边框的视觉表示,当前为粉红色,这就是我想要制作的渐变:

border flutter flutter-layout

2
推荐指数
1
解决办法
6255
查看次数