flutter Could not find lifecycle-runtime.jar (androidx.lifecycle:lifecycle-rflutter Could not find lifecycle-runtime.jar (androidx.lifecycle:lifecycle-r

这几天打代码时突然遇到这种报错,里面的Android文件红出半边天

作为代码小白也确实是一头雾水,硬着头皮百度了一个晚上也没找到什么关于解决报错的办法

后面尝试了一下

在flutter项目的android项目里面的build.gradle文件加上google(),和jcenter()就能正常运行了

不过貌似其他人的项目里面不需要这2行代码,作为小白我也不是很懂

如果能有大佬解释一下就更好了

发这篇文章也就是想记录一下,顺便如果有哪位朋友遇到相似问题也可以尝试一下

flutter Could not find lifecycle-runtime.jar (androidx.lifecycle:lifecycle-r

相关文章:

  • 2021-08-02
  • 2021-10-18
  • 2022-12-23
  • 2021-07-20
  • 2021-12-20
  • 2021-03-27
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2022-01-21
  • 2021-11-05
  • 2021-12-22
  • 2021-10-07
相关资源
相似解决方案