gpt4 book ai didi

android - flutter 发布apk错误:Execution failed for task ':app:lintVitalRelease'

转载 作者:行者123 更新时间:2023-12-03 02:43:45 25 4
gpt4 key购买 nike

我不能再发布我的应用程序了。
我正在使用 AndroidStudio 4.0 和 flutter 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

最佳答案

如果错误大约是 profile/libs.jar ,在终端中执行以下操作:

flutter build apk --profile
接着
flutter build apk --release  
解决了这个问题。
如果错误大约是 debug/libs.jar
flutter build apk --debug
接着
flutter build apk --release  
会解决问题

关于android - flutter 发布apk错误:Execution failed for task ':app:lintVitalRelease' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62720395/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com