It's an old one, but a good'un, try File -> Invalidate Caches / Restart, failing that you could try clearing your gradle cache manually. If this is happening across multiple projects, that were working, this solution sounds most plausible
本文介绍了解决Android项目中出现的没有构建变体问题的方法。建议首先尝试使用File->Invalidate Caches/Restart功能,如果问题仍然存在,则可以手动清除Gradle缓存。这一解决方案适用于多个之前工作正常的项目遇到此问题的情况。
It's an old one, but a good'un, try File -> Invalidate Caches / Restart, failing that you could try clearing your gradle cache manually. If this is happening across multiple projects, that were working, this solution sounds most plausible
1842
9089
825

被折叠的 条评论
为什么被折叠?