Reputation: 2678
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
Reputation: 2678
With huge help from @JuLes (commentting on my question) I figure out how to solve it. Here is what I did:
Android-Studio
following this guidance, then ...Gradle
from this link, then ...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
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