The past two days i have tried to find a solution to this problem but with no luck.
I am trying to include GSON
lib. Into my android project.
Here is a picture of my folder structure:
Now in my build.gradle i have the following:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
dependencies {
compile files('libs/gson-2.2.4.jar')
}
i have also right clicked gson-2.2.4.jar and added it as a lib.
When i compile i get the following error:
Gradle: A problem occurred evaluating root project 'notebox-android'.
> Could not find method compile() for arguments [directory 'libs'] on root project 'notebox-android'.
Can anyone help me with this?
please tell me if you need more information!