【发布时间】:2020-10-24 11:20:22
【问题描述】:
我不能再发布我的应用程序了。
我正在使用 AndroidStudio 4.0 和颤振 sdk 版本 1.17.5 。
上个月我两次发布了我的应用程序,但现在我真的不知道错误的原因是什么。
当我在终端中输入flutter build apk --release 时,就会出现这些错误:
Running Gradle task 'assembleRelease'...
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:lintVitalRelease'.
> Could not resolve all artifacts for configuration ':app:profileRuntimeClasspath'.
> Failed to transform libs.jar to match attributes {artifactType=processed-jar, org.gradle.libraryelements=jar, org.gradle.usage=java-runtime}.
> Execution failed for JetifyTransform: ....\build\app\intermediates\flutter\profile\libs.jar.
> Failed to transform '....\build\app\intermediates\flutter\profile\libs.jar' using Jetifier. Reason: FileNotFoundException, message: ....\build\app\intermediates\flutter\profile\libs.jar (The system cannot find the path specified). (Run with --stacktrace for more details.)
Please file a bug at http://issuetracker.google.com/issues/new?component=460323.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 42s
Running Gradle task 'assembleRelease'... 43.4s
Gradle task assembleRelease failed with exit code 1
【问题讨论】:
-
像这样详细运行 > flutter run --release -v
-
查看此链接了解详细说明:stackoverflow.com/questions/62394034/…
标签: android flutter gradle build release