【问题标题】:Execution failed for task ':app:lintVitalRelease' - ':video_player_android:debugUnitTestRuntimeClasspath'任务 \':app:lintVitalRelease\' - \':video_player_android:debugUnitTestRuntimeClasspath\' 执行失败
【发布时间】:2022-09-24 08:55:45
【问题描述】:

当我尝试生成签名的 APK 时,出现以下错误。

Execution failed for task \':app:lintVitalRelease\'.
> Could not resolve all artifacts for configuration \':video_player_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: /Users/elamparithibalakrishnan/.gradle/caches/modules-2/files-2.1/org.bouncycastle/bcprov-jdk15on/1.68/46a080368d38b428d237a59458f9bc915222894d/bcprov-jdk15on-1.68.jar.
         > Failed to transform \'/Users/elamparithibalakrishnan/.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).

* 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.

但我可以构建签名的捆绑文件。这不是我第一次为这个应用程序生成 apk。但不知道你有这个错误。

有人可以帮我解决这个问题。

    标签: android flutter gradle build.gradle android-video-player


    【解决方案1】:

    在 gradle.properties 中添加这个解决了我的问题。

    android.jetifier.blacklist=bcprov-jdk15on
    

    【讨论】:

      猜你喜欢
      • 2020-10-14
      • 2021-05-19
      • 2020-03-07
      • 1970-01-01
      • 2023-03-15
      • 1970-01-01
      • 1970-01-01
      • 2018-08-20
      • 2016-05-02
      相关资源
      最近更新 更多