Using Maven Inside of Android Studios
<p>I have been doing heavy searching on this for a few days now.  I find results but it ether applies to an older version or doesn't apply to my situation. </p>

<p>I have a Maven Project That I built inside Eclipse.  I've done a Maven install and Maven build via Eclipse.  I use the Maven project with another Java Application and it works fine once I run the install.</p>

<p>I want to use the same maven project inside of Android Studio.  I pretty sure I need to do something within build.gradle but there are 2 different ones and I'm not sure which one the dependencies need to be placed in or what needs to go where.</p>

<p>I get no errors when I'm writing the code and the problem happens during run-time with missing class definitions </p>

<p>I'm not sure how to tell the gradle to download the required dependencies</p>

<p>app (build.gradle):</p>

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

android {
    compileSdkVersion 23
    buildToolsVersion "23.0.2"

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

dependencies {
    compile fileTree(include: ['*.jar'], dir: 'libs')
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:23.1.1'
    compile 'SoleoLocalSearchAPI:SoleoLocalSearchAPI:0.0.1-SNAPSHOT'
}
</code></pre>

<p>SDK_Demo (build.gradle)</p>

<pre><code>// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
        mavenLocal()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:1.5.0'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        mavenLocal()
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}
</code></pre>

<p>MainActivity.java:</p>

<pre><code>package com.soleo.api.sdk_demo;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;

import com.soleo.LocalSearch;


public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        String api = "XXXXXXXXXXXX";
        String ani = "##########";

        LocalSearch localSearch = new LocalSearch(api, ani);


    }
}
</code></pre>