McLan
McLan

Reputation: 2678

Android-Studio: No build.gradle in my project, why?

I am developing my android application on Android-Studio. My project was checked out project from Git version control. Everything works fine. Except that I cannot see build.gradle file. Hence I am unable to add modules or libraries.

  1. Why doesn't my project has a build.gradle file ?!
  2. Did I do anything wrong to import my project from Git ?
  3. What should I do to be able to add libraries without having build.gradle ?

Here is what I did to import my project:

Check out project from Version Control -> Git,

after cloning, the following box appears:

enter image description here

I click `Yes. The follwoing box appears:

enter image description here

I accept the default options and click Ok, then the following box appear:

enter image description here

Again, I accept the default options and click Ok

Then my projec loads on Android-Studio. It shows me the following message:

enter image description here

Before I click on add root, the following box appears:

enter image description here

I click on dont' remind me again for this project. After that I can continue programming (Git and Version Control is working). But build.gradle is nowhere to be found !!


UPDATE 1:

The following image is the project view:

enter image description here

what am I doing wrong ?


UPDATE 2:

Here is the Android view:

enter image description here

Upvotes: 1

Views: 7553

Answers (2)

McLan
McLan

Reputation: 2678

With huge help from Stack Overflow community, I figure out how to solve it. Here is what I did:

  1. I totally removed Android-Studio following this guidance, then ...
  2. I installed Gradle from this link, then ...
  3. I re-installed Android-Studio following this link:

I am gussing the main problem was that I didn't installed Gradle manually and hence Android-Studio was using some sort of Gradle-Wrapper to allow the application to run.

Now, finally I can edit build.gradle.

Upvotes: 2

faisal
faisal

Reputation: 41

Choose Android View instead of Project View.. enjoy

see image1

enter image description here

see image2

enter image description here

Upvotes: 4

Related Questions