McLan
McLan

Reputation: 2678

I don't have gradle.build, why?

I am using Android-Studio to build my app. In order to add libraries, I need to edit build.gradle file but I don't see it anywhere. Even if I changed files-view from android to project and vice-versa .

Why don't I see/have build.gradle ?

Upvotes: 0

Views: 8117

Answers (2)

McLan
McLan

Reputation: 2678

With huge help from @JuLes (commentting on my question) 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.

BIG THANKS TO: JuLie

Upvotes: 0

Gabriele Mariotti
Gabriele Mariotti

Reputation: 363785

Check in your git repository if it contains the build.gradle files.

If not, you can just add manually to your project.
You should have something like this:

root
|--app
|----build.gradle
|--build.gradle
|--settings.gradle

You can also create a new blank project and copy the build.gradle files into your existing project (of course in the app/build.gradle file you have to change the values and the dependencies).

Upvotes: 1

Related Questions