简体   繁体   English

将 flutter 从 master 切换到 stable 后无法构建发布 apk

[英]Can not build release apk after switchinf flutter from master to stable

I can not build release apk, however i can build apk in debug mode.我无法构建发布 apk,但是我可以在调试模式下构建 apk。 When i was in flutter channel master it was ok, but then, i switched to master and get this logs.当我在 flutter 频道主控时,一切正常,但随后,我切换到主控并获取此日志。 Actually if i will switch back it will work fine, however some of my packages do not support features of master channel, so i must be on stable.实际上,如果我切换回来它会正常工作,但是我的一些软件包不支持主频道的功能,所以我必须稳定。

Error log presented under:错误日志显示在:

FAILURE: Build failed with an exception. FAILURE:构建失败并出现异常。

  • What went wrong: Execution failed for task ':app:lintVitalRelease'.出了什么问题:任务“:app:lintVitalRelease”执行失败。

Could not resolve all artifacts for configuration ':app:debugRuntimeClasspath'.无法解析配置“:app:debugRuntimeClasspath”的所有工件。 Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.无法转换 libs.jar 以匹配属性 {artifactType=processed-jar, org.gradle.libraryelements=jar, org.Z8ED1A771BC236C287AD93C699BFDD.D7Z.runtime=-runtime. > Execution failed for JetifyTransform: C:\educ-team\Educ-crossplatform\build\app\intermediates\flutter\debug\libs.jar. > JetifyTransform 执行失败:C:\edu-team\Educ-crossplatform\build\app\intermediates\flutter\debug\libs.jar。 > Transform's input file does not exist: C:\educ-team\Educ-crossplatform\build\app\intermediates\flutter\debug\libs.jar. > Transform的输入文件不存在:C:\educ-team\Educ-crossplatform\build\app\intermediates\flutter\debug\libs.jar。 (See https://issuetracker.google.com/issues/158753935 ) (见https://issuetracker.google.com/issues/158753935

  • Try: Run with --stacktrace option to get the stack trace.尝试:使用 --stacktrace 选项运行以获取堆栈跟踪。 Run with --info or --debug option to get more log output.使用 --info 或 --debug 选项运行以获得更多日志 output。 Run with --scan to get full insights.运行 --scan 以获得完整的见解。

  • Get more help at https://help.gradle.orghttps://help.gradle.org获得更多帮助

BUILD FAILED in 1m 54s Running Gradle task 'assembleRelease'...在运行 Gradle 任务“assembleRelease”的 1m 54 秒内构建失败...
Running Gradle task 'assembleRelease'... Done 115,3s Gradle task assembleRelease failed with exit code 1运行 Gradle 任务 'assembleRelease'... 完成 115,3s Gradle 任务 assembleRelease 失败,退出代码为 1

try --dubug then --release and if this doesn't work try -- debug then --profile then --release尝试 --dubug 然后 --release 如果这不起作用尝试 -- debug 然后 --profile 然后 --release

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM