gpt4 book ai didi

java - flutter 错误 : Could not resolve all artifacts for configuration ':image_picker_android:debugUnitTestRuntimeClasspath'

转载 作者:行者123 更新时间:2023-12-04 23:36:09 26 4
gpt4 key购买 nike

我正在开发的应用程序在模拟器或手机中调试良好,但是当我尝试构建 apk 时,它会出现以下错误:
**没有健全的零安全性的建筑
如需更多信息,请参阅 https://dart.dev/null-safety/unsound-null-safety
正在运行 Gradle 任务“assembleRelease”...
FAILURE:构建失败并出现异常。

  • 什么地方出了错:
    任务 ':app:lintVitalRelease' 执行失败。

  • Could not resolve all artifacts for configuration ':image_picker_android:debugUnitTestRuntimeClasspath'.Failed to transform bcprov-jdk15on-1.68.jar (org.bouncycastle:bcprov-jdk15on:1.68) to match attributes {artifactType=processed-jar, org.gradle.category=library, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.> Execution failed for JetifyTransform: /home/cicada/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.68/46a080368d38b428d237a59458f9bc915222894d/bcprov-jdk15on-1.68.jar.> Failed to transform '/home/cicada/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.68/46a080368d38b428d237a59458f9bc915222894d/bcprov-jdk15on-1.68.jar' using Jetifier. Reason: IllegalArgumentException, message: Unsupported class file major version 59. (Run with --stacktrace for more details.)Suggestions:- Check out existing issues at https://issuetracker.google.com/issues?q=componentid:460323&s=modified_time:desc, it's possible that this issue has already been filed there.- If this issue has not been filed, please report it at https://issuetracker.google.com/issues/new?component=460323 (run with --stacktrace and provide a stack trace if possible).


  • 尝试:
    使用 --stacktrace 选项运行以获取堆栈跟踪。使用 --info 或 --debug 选项运行以获得更多日志输出。运行 --scan 以获得完整的见解。
  • https://help.gradle.org 获得更多帮助

  • 19 秒内构建失败
    运行 Gradle 任务 'assembleRelease'... 20.7s
    Gradle 任务 assembleRelease 失败,退出代码为 1
    进程以退出代码 1 完成**

    最佳答案

    我在我的项目的应用程序级 build.gradle 的 android 部分添加了以下几行。

       lintOptions {
    disable 'InvalidPackage'
    disable "Instantiatable"
    checkReleaseBuilds false
    abortOnError false
    }
    每件事都开始正常工作。
    Check out my Gradle File

    关于java - flutter 错误 : Could not resolve all artifacts for configuration ':image_picker_android:debugUnitTestRuntimeClasspath' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72506950/

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