Android Studio 导入模块依赖后显示不出来解决办法!

打开一两年前的项目,发现跑不出来了,控制台直接出来的是 ERROR: Cannot choose between the following variants of project :Base:baselibrary: 网上说是AS 升级了 gradle的原因。

 

1、参照https://blog.csdn.net/wolfking0608/article/details/79151597  方法试了 没有解决

发现少了模块,识别不了项目moudle,所以需要先解决这问题

2、参照https://blog.csdn.net/android157/article/details/90815034  方法试了 没有解决

通过观察另一个好的项目,对比发现 settings.gradle 有所不同

Cannot choose between the following variants of project 解决办法

修改成

Cannot choose between the following variants of project 解决办法

保存后  模块可以加出来了,问题解决

相关文章:

  • 2021-05-26
  • 2021-08-25
  • 2022-12-23
  • 2021-09-28
  • 2021-08-14
  • 2021-11-13
  • 2021-10-02
  • 2021-07-20
猜你喜欢
  • 2021-04-06
  • 2022-12-23
  • 2021-05-01
  • 2021-12-25
  • 2021-09-25
  • 2022-02-20
  • 2022-12-23
相关资源
相似解决方案