- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在开发的应用程序在模拟器或手机中调试良好,但是当我尝试构建 apk 时,它会出现以下错误:
**没有健全的零安全性的建筑
如需更多信息,请参阅 https://dart.dev/null-safety/unsound-null-safety
正在运行 Gradle 任务“assembleRelease”...
FAILURE:构建失败并出现异常。
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).
最佳答案
我在我的项目的应用程序级 build.gradle 的 android 部分添加了以下几行。
lintOptions {
disable 'InvalidPackage'
disable "Instantiatable"
checkReleaseBuilds false
abortOnError false
}
每件事都开始正常工作。
关于java - flutter 错误 : Could not resolve all artifacts for configuration ':image_picker_android:debugUnitTestRuntimeClasspath' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72506950/
我是一名优秀的程序员,十分优秀!