Flutter打包Android项目时28.0.3/core-lambda-stubs.jar问题

在Android studio创建flutter项目后在anrdoid上运行报错,说是core-lambda-stubs.jar有问题

Execution failed for task ':app:desugarDebugFileDependencies'.          

> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade

   > /Users/bgc/android-sdk-macosx/build-tools/28.0.3/core-lambda-stubs.jar

如下图

Flutter打包Android项目时28.0.3/core-lambda-stubs.jar问题_第1张图片

解决方法:

打开AS中SDK设置界面如下图,将28.0.3勾选去掉点击apply,然后重新勾选上点击apply(目的就是把它卸载掉并重新安装)

Flutter打包Android项目时28.0.3/core-lambda-stubs.jar问题_第2张图片

你可能感兴趣的:(Flutter)