[英]Why Project's build.gradle is not showing?
Why is Project's build.gradle not showing up in Android mode?为什么 Project 的 build.gradle 在 Android 模式下不显示?
Just like the picture below, the .gradle file in the project root directory can also be displayed in Android mode.就像下图一样,项目根目录下的.gradle文件也可以在Android模式下显示。 enter image description here
在此处输入图片说明
Your using project
structure better to use android
structure view您使用
project
结构更好地使用android
结构视图
secound thing is if you want to use project structure then project->build.gradle
is your project level gradle file
for Ex.
第二件事是,如果你想使用项目结构,那么
project->build.gradle
是你的项目级别的gradle file
Ex.
AndroidWeather/build.gradle
This can happen when the caches get messed up.当缓存弄乱时可能会发生这种情况。 Try this:
尝试这个:
Note, to delete the folder:注意,要删除文件夹:
cd /path/to/project
rm -rf .idea
Now you should see the project-level build.gradle in the Android scope.现在您应该在 Android 范围内看到项目级别的 build.gradle。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.