使用命令“flutter build apk”在 flutter 中获取我的应用程序的 apk 时出现问题

问题描述 投票:0回答:0

当我执行命令时,一切顺利,它甚至给了我可以安装的应用程序文件,但是完成后我得到了这些错误:

w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:
    C:/Users/carlo/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.30/5fd47535cc85f9e24996f939c2de6583991481b0/kotlin-stdlib-jdk8-1.5.30.jar (version 1.5)
    C:/Users/carlo/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.20/f8629f336bad4001c89e9cffa5ef3d4b5d0f5e22/kotlin-stdlib-jdk7-1.6.20.jar (version 1.6)
    C:/Users/carlo/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.10/d2abf9e77736acc4450dc4a3f707fa2c10f5099d/kotlin-stdlib-1.7.10.jar (version 1.7)
    C:/Users/carlo/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.10/bac80c520d0a9e3f3673bc2658c6ed02ef45a76a/kotlin-stdlib-common-1.7.10.jar (version 1.7)
w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath
e: C:/Users/carlo/.gradle/caches/modules-2/files-2.1/androidx.annotation/annotation/1.5.0/857678d6b4ca7b28571ef7935c668bdb57e15027/annotation-1.5.0.jar!/META-INF/annotation.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
e: C:/Users/carlo/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.10/d2abf9e77736acc4450dc4a3f707fa2c10f5099d/kotlin-stdlib-1.7.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1.
w: Runtime JAR files in the classpath should have the same version. These files were found in the classpath:    C:/Users/carlo/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk8/1.5.30/5fd47535cc85f9e24996f939c2de6583991481b0/kotlin-stdlib-jdk8-1.5.30.jar (version 1.5)
    C:/Users/carlo/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-jdk7/1.6.20/f8629f336bad4001c89e9cffa5ef3d4b5d0f5e22/kotlin-stdlib-jdk7-1.6.20.jar (version 1.6)    C:/Users/carlo/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib/1.7.10/d2abf9e77736acc4450dc4a3f707fa2c10f5099d/kotlin-stdlib-1.7.10.jar (version 1.7)    C:/Users/carlo/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlin/kotlin-stdlib-common/1.7.10/bac80c520d0a9e3f3673bc2658c6ed02ef45a76a/kotlin-stdlib-common-1.7.10.jar (version 1.7)w: Some runtime JAR files in the classpath have an incompatible version. Consider removing them from the classpath

实在是不知道怎么解决,已经咨询了Chat Gpt还是不懂

Este es mi archivo build.gradle => "app/build.gradle"

enter image description here

除此之外,当我在我的物理手机上安装和测试应用程序时,没有任何显示,我在制作应用程序时在调试模式下不会出现这种情况,为什么会出现这种情况,如果您能帮助我,非常感谢!

Trate de seguir el paso a paso que me decia Chat gpt,pero lamentablemente soy relativamente nuevo en flutter,pero este tipo de problemas no los entiendo aun.

Pense que volviendo a hacer el proyecto , es decir , crear un nuevo proyecto y solo copiando y pegando las paginas de mi app , se solucionaria pero no funciono.

flutter build apk
© www.soinside.com 2019 - 2024. All rights reserved.