8***@qq.com
8***@qq.com
  • 发布:2021-03-20 17:10
  • 更新:2022-04-11 17:18
  • 阅读:1486

uniapp打包安卓APP,引入原生插件打包失败,报错

分类:HBuilderX

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:checkReleaseAarMetadata'.

    Could not resolve all files for configuration ':app:releaseRuntimeClasspath'.
    Failed to transform speech_ifly-release.aar to match attributes {artifactType=android-aar-metadata}.
    Execution failed for JetifyTransform: [SourcePath]/libs/speech_ifly-release.aar.
    Failed to transform '[SourcePath]/libs/speech_ifly-release.aar' using Jetifier. Reason: InvalidByteCodeException, message: Error processing 'com/iflytek/thirdparty/e.class' bytecode.. (Run with --stacktrace for more details.)
    This is a known exception, and Jetifier won't be able to jetify this library.
    Suggestions:

  • If you believe this library doesn't need to be jetified (e.g., if it already supports AndroidX, or if it doesn't use support libraries/AndroidX at all), add android.jetifier.blacklist = {comma-separated list of regular expressions (or simply names) of the libraries that you don't want to be jetified} to the gradle.properties file.

  • If you believe this library needs to be jetified (e.g., if it uses old support libraries and breaks your app if it isn't jetified), contact the library's authors to update this library to support AndroidX and use the supported version once it is released.
    If you need further help, please leave a comment at https://issuetracker.google.com/issues/140747218.

  • Try:
    Run with --debug option to get more log output. Run with --scan to get full insights.

2021-03-20 17:10 负责人:无 分享
已邀请:
小西瓜

小西瓜

请问你解决了么

阿阿阿阿宽

阿阿阿阿宽 - 代码还是要写滴,不写没饭吃

===>react

该问题目前已经被锁定, 无法添加新回复