JetifyTransform Flutter运行执行失败


FAILURE: Build failed with an exception.
  • 出了什么问题:任务":app:compileDebugKotlin"的执行失败。

    无法解析配置":app:debugCompileClasspath"的所有项目。无法将工件"x86_debug.jar(io.flatter:x86_debug:1.0.0-77c5812d48b861225ea629bd813ad502ddf2c89c("转换为匹配属性{artifactType=android classes,org.gradle.usause=java runtime jars}。JetifyTransform执行失败:C:\Users\Parth.gradle\caches\modules-2\files-2.1\io.flutter\x86_debug \1.0.0-77c5812d48b861225ea629bd813ad502ddf2c89c\d987fc036069ac9d7bfec6a441e0c6ca9e6d8467\x86_debug-0.0.-77c5812d48b86.1225ea629BD813ad502DDf2c89c.jar。无法使用Jetifier转换"C:\Users\Parth.gradle\caches\modules-2\files-2.1\io.flutter\x86_debug\1.0.0-77c5812d48b861225ea629bd813ad502ddf2c89c\d987fc036069ac9d7bfec6a441e0c6ca9e6d8467\x86_debug-0.0.-77c5812d48b86.1225ea629BD813ad502df2c89c.jar"。原因:距离代码无效。(有关详细信息,请使用--stacktrace运行。(

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

  • 获取更多帮助,请访问https://help.gradle.org

构建在22秒内失败渐变任务assemblyDebug失败,退出代码为1退出(sigterm(

我有类似的错误,我将chekReleaseBuilds false添加到gradle文件中,如下所示:

lintOptions {
disable 'InvalidPackage'
checkReleaseBuilds false //added this line to the build.gradle under the 
/android/app/build.gradle 
}

这起到了作用。

最新更新