当前位置:   article > 正文

【Flutter】解决android编译失败:Multiple build operations failed this and base files have different roots_multiple build operations failed.

multiple build operations failed.

错误信息

Multiple build operations failed
this and base files have different roots: E:\Andriod Project\Github\dumasia\build\flutter_plugin_android_lifecycle and C:\Users\AppData\Local\Pub\Cache\hosted\pub.dev\flutter_plugin_android_lifecycle-2.0.9\android.

错误原因

看说法,大概率是gradle兼容性问题

解决办法

  1. 更改gradle版本,从之前没问题的版本里复制一份。
  2. 更改dart的pub缓存位置,保持跟项目在同一个磁盘下。

参考资料

https://github.com/flutter/flutter/issues/105395

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/579889
推荐阅读
相关标签
  

闽ICP备14008679号