简体   繁体   English

在从 Eclipse 导入的 Android Studio 项目中找不到 build.gradle (Module app)

[英]Can't find build.gradle (Module app) in Android Studio project imported from Eclipse

I'm new to android and I imported a project from eclipse.我是 android 新手,我从 eclipse 导入了一个项目。

I need to edit the package name in defaultConfig in build.gradle (Module app) code and I just can't find it anywhere..我需要在 build.gradle(模块应用程序)代码中的 defaultConfig 中编辑包名称,但我在任何地方都找不到它。

Here's a snapshot of the project in AS这是 AS 中项目的快照

来自我在 AS 中的项目文件的快照

Any suggestions?有什么建议吗?

在您上传的图片顶部有一个用于“项目”的微调按钮,将其转为“android”,您将找到模块应用程序gradle

I don't know why that answer wasn't accepted but just to confirm, switching to android view instead of project in the navigation pane allowed me to access it.我不知道为什么不接受该答案,只是为了确认,切换到 android 视图而不是导航窗格中的项目允许我访问它。 Once you do this, you can right click the gradle file in android studio and select "show in explorer" This will let you see how it is stored on your local machine.完成此操作后,您可以右键单击 android studio 中的 gradle 文件并选择“在资源管理器中显示”这将让您看到它是如何存储在您的本地机器上的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM