Importing GSON using dependencies not giving access to methods
<p>I have imported GSON by adding a line to the dependencies section in my module's build.gradle file:</p>

<pre><code>apply plugin: 'com.android.application'

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.0"

    defaultConfig {
        applicationId "com.project"
        minSdkVersion 17
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

repositories {
    mavenCentral()
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    compile 'com.android.support:appcompat-v7:23.0.1'
    compile 'com.google.code.gson:gson:2.5'
}
</code></pre>

<p>I can see the Gson files under my applications external libraries and go through all of the files. The issue is that when I try and use a Gson object I only get access to ".class". I can open the Gson library and see all of the methods (see image below) available but my compiler is not finding them. I have tried rebuilding, closing and reopening Android Studio, and removing and adding the library. I am new to using this fancy maven dependencies stuff so maybe I am missing something?</p>

<p><a href="https://i.stack.imgur.com/EN26V.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EN26V.png" alt="enter image description here"></a></p>

<p>I am trying to learn how to use the gradle/maven to handle my decencies instead of downloading and including .jar files as I feel this is the more modern and standard way of including libraries. Can someone let me know if this is true or if downloading and including libraries via libs/library.jar is used just as much?</p>

<p>Thanks!</p>

<p><strong>EDIT:</strong></p>

<p>Here is a screen shot of what I mean when I say I only get access to ".class" when trying to use the Gson object.</p>

<p><a href="https://i.stack.imgur.com/oYTC7.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/oYTC7.png" alt="enter image description here"></a></p>